agent2agentSourceA2AFaradayMiddlewareRESTResponse

class Response

Faraday response middleware for the A2A HTTP+JSON/REST binding.

Unlike the JSON-RPC binding, REST responses have no envelope — the body IS the result directly. Errors are signaled via HTTP status codes with application/problem+json bodies.

Reads env.request.context[:a2a_operation] to determine which Schema class to instantiate. If no operation is set, passes through.