Skip to main content

Module error

Module error 

Source
Expand description

Structured errors (spec: Structured errors): a stable snake_case code, a human-readable message, and whether retrying the same request is meaningful.

Modules§

code
The error codes this protocol version defines. Agents may send others; retryable returns None for those.

Structs§

Error
An error carried in a response or welcome, or produced by the host session on the agent’s behalf (a missing capability, a passed deadline, a lost connection).

Functions§

retryable
Whether retrying is meaningful for a code this protocol version defines, or None for any other code.