Exception: A2A::InvalidAgentResponseError
- Defined in:
- lib/a2a/errors.rb
Overview
An agent returned a response that does not conform to the specification for the current method.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
- #error_data ⇒ Object
-
#initialize(message: "Invalid agent response") ⇒ InvalidAgentResponseError
constructor
A new instance of InvalidAgentResponseError.
Methods inherited from Error
Constructor Details
#initialize(message: "Invalid agent response") ⇒ InvalidAgentResponseError
Returns a new instance of InvalidAgentResponseError.
147 148 149 |
# File 'lib/a2a/errors.rb', line 147 def initialize(message: "Invalid agent response") super(, code: -32006, http_status: 500) end |
Instance Method Details
#error_data ⇒ Object
151 152 153 154 155 156 157 |
# File 'lib/a2a/errors.rb', line 151 def error_data [{ "@type" => "type.googleapis.com/google.rpc.ErrorInfo", "reason" => "INVALID_AGENT_RESPONSE", "domain" => "a2a-protocol.org", }] end |