feat: add v1.0 error types (ExtensionSupportRequired, VersionNotSupported)#15
Open
zeroasterisk wants to merge 1 commit intoactioncard:mainfrom
Open
feat: add v1.0 error types (ExtensionSupportRequired, VersionNotSupported)#15zeroasterisk wants to merge 1 commit intoactioncard:mainfrom
zeroasterisk wants to merge 1 commit intoactioncard:mainfrom
Conversation
…rted) Add the two missing A2A v1.0 error constructors: - extension_support_required/1 (-32008) - version_not_supported/1 (-32009) All 14 error codes verified against a2a.proto HEAD: -32700 parse_error -32600 invalid_request -32601 method_not_found -32602 invalid_params -32603 internal_error -32001 task_not_found -32002 task_not_cancelable -32003 push_notification_not_supported -32004 unsupported_operation -32005 content_type_not_supported -32006 invalid_agent_response -32007 authenticated_extended_card_not_configured -32008 extension_support_required (NEW) -32009 version_not_supported (NEW) Part of actioncard#13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #13 (A2A v1.0 Protocol Support)
Changes
Adds the two missing A2A v1.0 error type constructors to
A2A.JSONRPC.Error:extension_support_required/1— code-32008version_not_supported/1— code-32009Both follow the existing pattern (default data
nil, optionaldataparam).Includes tests for both new constructors.
Verified Error Codes
All 14 error codes verified against
a2a.protoHEAD (Section 5.4 Error Code Mappings):parse_errorinvalid_requestmethod_not_foundinvalid_paramsinternal_errortask_not_foundtask_not_cancelablepush_notification_not_supportedunsupported_operationcontent_type_not_supportedinvalid_agent_responseauthenticated_extended_card_not_configuredextension_support_requiredversion_not_supportedFixes part of #13