Modules§
- error_
code - A2A-specific error codes (JSON-RPC).
Structs§
- A2AError
- An A2A protocol error.
Functions§
- a2a_
error_ from_ details - Builds the client-side
A2AErrorfor an error received with typed details, the same way on every transport, whatever order the details arrive in: a protocol-domainErrorInforeason selects the A2A code; without one, aBadRequestpromotesINTERNAL_ERRORtoINVALID_PARAMS;BadRequestviolations are appended to the message asfield: description. - error_
reason - Returns the reason string for an error code.
- protocol_
error_ code - The A2A error code named by the last protocol-domain
ErrorInfodetail, if any. - reason_
to_ error_ code - Returns the error code for a reason string, or
Noneif unrecognized.