Skip to main content

Module errors

Module errors 

Source

Modules§

error_code
A2A-specific error codes (JSON-RPC).

Structs§

A2AError
An A2A protocol error.

Functions§

a2a_error_from_details
Builds the client-side A2AError for an error received with typed details, the same way on every transport, whatever order the details arrive in: a protocol-domain ErrorInfo reason selects the A2A code; without one, a BadRequest promotes INTERNAL_ERROR to INVALID_PARAMS; BadRequest violations are appended to the message as field: description.
error_reason
Returns the reason string for an error code.
protocol_error_code
The A2A error code named by the last protocol-domain ErrorInfo detail, if any.
reason_to_error_code
Returns the error code for a reason string, or None if unrecognized.