Overview
-
module A2A-
class AgentDSL wrapper that collects operation handlers for an A2A agent.
-
class StackBuilderBuilds a per-operation middleware stack.
-
class TerminalWraps the respond_with lambda as a callable.
-
class HandlerHandler object produced by the #on DSL method.
-
class ClientFaraday-based A2A protocol client.
-
eachOperations — each maps to a Proto operation name.
-
class JsonRpcErrorRaised by the JSON-RPC response middleware when the server returns
-
class RestErrorRaised by the REST response middleware when the server returns an
-
class ErrorBase error class for A2A protocol errors.
-
class TaskNotFoundErrorThe specified task ID does not correspond to an existing or accessible task.
-
class TaskNotCancelableErrorAn attempt was made to cancel a task that is not in a cancelable state
-
class PushNotificationNotSupportedErrorClient attempted to use push notification features but the server agent
-
class UnsupportedOperationErrorThe requested operation or a specific aspect of it is not supported
-
class ContentTypeNotSupportedErrorA Media Type provided in the request's message parts or implied for an artifact
-
class InvalidAgentResponseErrorAn agent returned a response that does not conform to the specification
-
class ExtendedAgentCardNotConfiguredErrorThe agent does not have an extended agent card configured when one is
-
class ExtensionSupportRequiredErrorServer requested use of an extension marked as required: true in the
-
class VersionNotSupportedErrorThe A2A protocol version specified in the request (via A2A-Version service
-
class InvalidParamsErrorValidation error for invalid input parameters or message format.
-
module InternalInternal (non-spec) errors used by this library's implementation.
-
module Errors-
class PushNotificationConfigNotFoundErrorRaised when a specific push notification config cannot be found by ID.
-
-
-
module Faraday-
module Middleware-
module JsonRpc-
class RequestFaraday request middleware that wraps the request body in a
-
class ResponseFaraday response middleware that unwraps JSON-RPC 2.0 responses
-
-
module REST-
class RequestFaraday request middleware that rewrites the request for the
-
class ResponseFaraday response middleware for the A2A HTTP+JSON/REST binding.
-
-
class SchemaRequestFaraday request middleware that converts A2A::Schema::Definition
-
-
-
class InMemoryPushNotificationConfigStore -
class InMemoryTaskStore -
module Middleware-
class FetchTaskLoads a task from the store and places it on
env["a2a.task"]. -
class HistoryLengthParses
request.history_lengthand applies history truncation to -
class PageSizeClamps
request.page_sizeto a valid range and sets
-
-
module ProtoParses the A2A protocol's .proto file to extract service operations
-
class PushNotificationConfigStoreInterface for storing and retrieving push notification
-
module SchemaSchema-validated A2A protocol objects, powered by json_schemer.
-
class DefinitionBase class for schema-validated A2A protocol objects.
-
class ValidationErrorRaised when a Definition instance fails schema validation.
-
class << self
-
-
class ServerRack application that exposes an A2A-compliant agent server.
-
module Bindings-
class JsonRpcRack middleware implementing the A2A JSON-RPC 2.0 protocol binding.
-
class RestRack middleware implementing the A2A HTTP+JSON/REST protocol binding.
-
-
class DispatcherRoutes incoming A2A operations to their registered handler stacks.
-
class EnvRack middleware that injects shared A2A context into the env.
-
class TriageRack middleware that resolves which A2A operation a request targets.
-
-
module SSE-
class JsonRpcStreamSSE stream that wraps each event in a JSON-RPC 2.0 response envelope.
-
class RestStreamSSE stream for the HTTP+JSON/REST binding.
-
class StreamAsync-native SSE body built on Protocol::HTTP::Body::Writable.
-
-
class TaskStoreAgent Task Store interface.
-
module TestHelpers
-
-
testSpecification excerpt: refs/A2A/docs/specification.md, Section 3.3.2 Error Handling
-
Provider