Class: A2A::ContentTypeNotSupportedError
- Inherits:
-
JSONRPC::Error
- Object
- JSONRPC::Error
- A2A::ContentTypeNotSupportedError
- Defined in:
- lib/a2a/types/content_type_not_supported_error.rb
Overview
Error for unsupported content types (-32005)
Raised when a Media Type provided in the request’s message.parts (or implied for an artifact) is not supported by the agent or the specific skill being invoked.
Instance Method Summary collapse
-
#initialize(message = 'Incompatible content types.', data: nil, request_id: nil) ⇒ ContentTypeNotSupportedError
constructor
Creates a new Content Type Not Supported Error with code -32005.
Constructor Details
#initialize(message = 'Incompatible content types.', data: nil, request_id: nil) ⇒ ContentTypeNotSupportedError
Creates a new Content Type Not Supported Error with code -32005
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/a2a/types/content_type_not_supported_error.rb', line 29 def initialize( = 'Incompatible content types.', data: nil, request_id: nil ) super( , code: ErrorCodes::CONTENT_TYPE_NOT_SUPPORTED, data:, request_id: ) end |