The object model of one task
A dashed frame marks context ac3830af. Inside it, task 3d8f7801 from the blocking run is drawn as a table that fills in the order the run filled it: id and contextId, then the two history messages, the user message 21636369 and the agent message 10cc3c92 with their roles, then the artifacts test-log and summary with their names and part counts, and last status.state TASK_STATE_COMPLETED, status.message 1 failed, 11 passed, and status.timestamp 2026-10-06T09:00:00.750Z. Below, four chips show that a part holds exactly one of text, raw, url or data, with an example of each.
Task
EVERY MESSAGE AND ARTIFACT HOLDS PARTS
text
collected 12 items
raw
refunds.diff, base64
url
screenshot.png
data
"passed": 11
Each part holds exactly one of these four, plus optional mediaType, filename and metadata.
context ac3830af
groups related tasks and messages, and this run made one task
id
3d8f7801
contextId
ac3830af
history
2 messages
messageId: 21636369
role: ROLE_USER
parts: 1 text part
messageId: 10cc3c92
role: ROLE_AGENT
parts: 1 text part
artifacts
2 artifacts
artifactId: test-log
name: test-log.txt
parts: 5 text parts
artifactId: summary
name: summary.json
parts: 1 data part
status.state
TASK_STATE_COMPLETED
status.message
1 failed, 11 passed
status.timestamp
2026-10-06T09:00:00.750Z