def refuse

ezmcp@0.1.0.0 · main.bend:77

import ezmcp@0.1.0.0/main.bend as Ezmcp
import Base
import ezmcp@0.1.0.0/src/rpc.bend as Rpc

77# a runner's answer for a call it refuses as a protocol error: a JSON-RPC
78# error with this code and message instead of a tool result
79# (server/tools#error-handling)
80def refuse(code: Rpc.Code, message: String) -> Rpc.Out:  # noqa: L001 the Rpc.Err constructor
81  Rpc.Err{code, message}

Uses (3)

Used by (0)

No other definition uses this definition.