Skip to content

fix(dispatch): align A2A protocol with v0.3.0 message/send - #48

Open
addadi wants to merge 1 commit into
nullclaw:mainfrom
addadi:fix/a2a-message-send-v0.3.0
Open

fix(dispatch): align A2A protocol with v0.3.0 message/send#48
addadi wants to merge 1 commit into
nullclaw:mainfrom
addadi:fix/a2a-message-send-v0.3.0

Conversation

@addadi

@addadi addadi commented Aug 22, 2026

Copy link
Copy Markdown

Fixes #42

buildA2aRequestBody emitted the A2A v0.2 shape: method tasks/send and parts discriminated by "type". Current nullclaw (and A2A v0.3.0) requires message/send, parts[].kind, and a message object with kind:"message" + messageId. Dispatching to an A2A worker failed protocol validation on the worker side.

  • Request side: emit the v0.3.0 shape, deriving messageId from the context_id. Session semantics unchanged (same context_id = same conversation).
  • Response side: parseA2aResponse only understood the legacy result.artifacts[0].parts[0].text shape; message/send returns the Message object directly, so extract result.parts[0].text first and keep the artifacts path as legacy fallback.

Tests updated to the new contract; new test for Message-shape response parsing. Full suite green (zig build test, 356/356).

buildA2aRequestBody emitted the A2A v0.2 shape: method tasks/send and
parts discriminated by "type". Current nullclaw (and A2A v0.3.0)
requires message/send, parts[].kind, and a message object with
kind:"message" + messageId. Dispatching to an A2A worker failed
protocol validation on the worker side.

Request side: emit the v0.3.0 shape, deriving messageId from the
context_id. Session semantics unchanged (same context_id = same
conversation).

Response side: parseA2aResponse only understood the legacy
result.artifacts[0].parts[0].text shape; message/send returns the
Message object directly, so extract result.parts[0].text first and keep
the artifacts path as legacy fallback.

Tests updated to the new contract; new test for Message-shape response
parsing.

Fixes nullclaw#42
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.

BUG: A2A dispatch uses tasks/send (v0.2) — incompatible with nullclaw A2A v0.3.0 message/send

1 participant