Skip to content

fix: set MessageID in A2A SendMessage to satisfy agent validation - #20

Open
chethansiddagiri wants to merge 1 commit into
kagent-dev:mainfrom
chethansiddagiri:fix/missing-message-id-in-a2a-send
Open

chethansiddagiri wants to merge 1 commit into
kagent-dev:mainfrom
chethansiddagiri:fix/missing-message-id-in-a2a-send

Conversation

@chethansiddagiri

Copy link
Copy Markdown

Without MessageID, the Go ADK agent server rejects the message with 'message ID is required' and returns an error with data as an object. The kagent controller's A2A relay (a2a-go/v2) then fails to parse this error since it expects data as an array, causing a -32603 internal error.

Setting MessageID: uuid.New().String() fixes the entire chain. uuid is already an indirect dependency in go.mod.

Tested with kagent v0.10.1 on EKS (khook v0.0.4).

Without MessageID, the Go ADK agent server rejects the message with
'message ID is required' and returns an error with data as an object.
The kagent controller's A2A relay (a2a-go/v2) then fails to parse this
error since it expects data as an array, causing a -32603 internal error.

Setting MessageID: uuid.New().String() fixes the entire chain.
uuid is already an indirect dependency in go.mod.

Tested with kagent v0.10.1 on EKS (khook v0.0.4).

Signed-off-by: csiddagiri <c_siddagiri@apple.com>
@chethansiddagiri
chethansiddagiri force-pushed the fix/missing-message-id-in-a2a-send branch from fba2f9b to 26665cc Compare September 23, 2026 19:37
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