Skip to content

Route all A2A methods and return proper JSON-RPC error responses#50

Merged
Kludex merged 7 commits into
mainfrom
phase3-features
Mar 8, 2026
Merged

Route all A2A methods and return proper JSON-RPC error responses#50
Kludex merged 7 commits into
mainfrom
phase3-features

Conversation

@Kludex
Copy link
Copy Markdown
Collaborator

@Kludex Kludex commented Mar 8, 2026

Summary

  • Route all JSON-RPC methods in _agent_run_endpoint instead of raising NotImplementedError
  • Push notification methods return PushNotificationNotSupportedError (-32003)
  • message/stream and tasks/resubscribe return UnsupportedOperationError (-32004)
  • Add SendMessageResult wrapper type, DeleteTaskPushNotificationConfigResponse, tenant on request params
  • Remove final from TaskStatusUpdateEvent (not in v1 spec)

Test plan

  • All existing tests pass
  • Pyright passes with 0 errors
  • Ruff lint and format pass

🤖 Generated with Claude Code

Kludex added 7 commits March 8, 2026 10:51
- Flatten TaskPushNotificationConfig (absorb PushNotificationConfig fields)
- Rename PushNotificationAuthenticationInfo to AuthenticationInfo (schemes -> scheme)
- Add ListTasksParams, ListTasksResult, ListTasksRequest, ListTasksResponse
- Add GetTaskPushNotificationConfigParams, ListTaskPushNotificationConfigResult
- Update MessageSendConfiguration to use task_push_notification_config
- Update A2ARequest/A2AResponse unions with new types
…rams, add SendMessageResult wrapper

- Remove `final` field from `TaskStatusUpdateEvent` (not in v1 spec)
- Add `tenant` field to `TaskIdParams` and `MessageSendParams`
- Add `SendMessageResult` wrapper type matching v1 spec shape
- Update task_manager to wrap result in `SendMessageResult`
- Route all JSON-RPC methods in _agent_run_endpoint
- Return UnsupportedOperationError for message/stream and tasks/resubscribe
- Return PushNotificationNotSupportedError for push notification methods
- Return UnsupportedOperationError for tasks/list (not yet implemented)
- Add DeleteTaskPushNotificationConfigResponse type
- Remove TaskStatusUpdateEvent.final (not in v1 spec)
- Add tenant field to TaskIdParams and MessageSendParams
- Add SendMessageResult wrapper matching v1 spec
@Kludex Kludex merged commit 1397400 into main Mar 8, 2026
7 checks passed
@Kludex Kludex deleted the phase3-features branch March 8, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant