Class: A2A::InvalidAgentResponseError
- Inherits:
-
JSONRPC::Error
- Object
- JSONRPC::Error
- A2A::InvalidAgentResponseError
- Defined in:
- lib/a2a/types/invalid_agent_response_error.rb
Overview
Error for invalid agent responses (-32006)
Raised when agent generates an invalid response for the requested method.
Instance Method Summary collapse
-
#initialize(message = 'Invalid agent response type.', data: nil, request_id: nil) ⇒ InvalidAgentResponseError
constructor
Creates a new Invalid Agent Response Error with code -32006.
Constructor Details
#initialize(message = 'Invalid agent response type.', data: nil, request_id: nil) ⇒ InvalidAgentResponseError
Creates a new Invalid Agent Response Error with code -32006
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/a2a/types/invalid_agent_response_error.rb', line 28 def initialize( = 'Invalid agent response type.', data: nil, request_id: nil ) super( , code: ErrorCodes::INVALID_AGENT_RESPONSE, data:, request_id: ) end |