Skip to content

A2AMessageResult

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/a2a/A2AClientWrapper.ts:42

A single A2A turn’s result with its conversation-continuity handles (BATCH-14). Unlike the text-only A2AClientWrapper.sendMessage, this carries the contextId/taskId the server returned so a caller can thread them into follow-up turns (an ADK agent keeps conversational context by contextId). Both are optional because a response may be a bare Message (which carries them only optionally) or a Task (which always carries contextId, and id as the taskId).

optional contextId?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/a2a/A2AClientWrapper.ts:46

The A2A context id to thread into subsequent turns for conversational continuity.


optional taskId?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/a2a/A2AClientWrapper.ts:48

The A2A task id, when the response was a Task (Task.id) or a task-scoped Message.


text: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/a2a/A2AClientWrapper.ts:44

The agent’s answer text, extracted from the response’s text parts.