def method.of

ezmcp@0.1.0.0 · src/server.bend:236

import ezmcp@0.1.0.0/src/server.bend as Server
import Base

236def method.of(+meth: String) -> Method:
237  Bool.pick(Method, String.eq(meth, "initialize"), Initialize{},
238    Bool.pick(Method, String.eq(meth, "ping"), Ping{},
239      Bool.pick(Method, String.eq(meth, "tools/list"), ListTools{},
240        Bool.pick(Method, String.eq(meth, "tools/call"), CallTool{}, Other{}))))

Uses (4)

Used by (1)