Stream run events.
Arguments
commandRunsStreamRunEventsCommand!requiredcommand.runIdID!requiredRun UUID, or the public run id (run_…) that run lists and getRun carry as run_id. Normal callers need access to the run owner and project.runs.read. A bound eval runtime may instead read its authorized direct agent child.
command.eventRepresentationStringUse
run-events-v1to receive Agent Events Protocol CloudEvents, orag-uifor receipt-backed AG-UI events from Agent runs. Omit it to keep the released run-event row stream contract.lastEventIdString
Responses
subscription StreamRunEvents($command: RunsStreamRunEventsCommand!) { streamRunEvents(command: $command) { eventId eventType payload isError createdAt runId eventClass spanId parentSpanId turnId originEventType originCustomName unrecoverableFields }}event: nextdata: {"data":{"streamRunEvents":{"eventId":0,"eventType":"string","payload":{},"isError":false,"createdAt":"string","runId":"string","eventClass":"string","spanId":"string","parentSpanId":"string","turnId":"string","originEventType":"string","originCustomName":"string","unrecoverableFields":["string"]}}} event: completeA stream of events, each with a RunsStreamFrame! in data.streamRunEvents.