Send an event to a running task.
Request for POST /tasks/{task_id}/events
Content accepts TextPart or DataPart only. Other message types (tool calls, reasoning, etc.) are agent-generated and sent via the /raw-events endpoint.
Event content
Optional idempotency key for retry-safe event delivery.
Whether to also create a message record for this event. Defaults to True.
Successful Response
Event returned from the events API.
Content is TextPart or DataPart (human-readable content only).
The UUID of the agent that the event belongs to
The content of the event (TextPart or DataPart)
The timestamp of the event
The UUID of the event
The sequence ID of the event
Server-advertised stream lifecycle capabilities for this event
The UUID of the task that the event belongs to