A2AMessageResult
Defined in: packages/agent/src/modules/a2a/A2AClientWrapper.ts:43
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).
Properties
Section titled “Properties”contextId?
Section titled “contextId?”
optionalcontextId?:string
Defined in: packages/agent/src/modules/a2a/A2AClientWrapper.ts:47
The A2A context id to thread into subsequent turns for conversational continuity.
taskId?
Section titled “taskId?”
optionaltaskId?:string
Defined in: packages/agent/src/modules/a2a/A2AClientWrapper.ts:49
The A2A task id, when the response was a Task (Task.id) or a task-scoped Message.
text:
string
Defined in: packages/agent/src/modules/a2a/A2AClientWrapper.ts:45
The agent’s answer text, extracted from the response’s text parts.