streamRunEvents

Stream run events.

Arguments

  • commandRunsStreamRunEventsCommand!required

  • command.runIdID!required

    Run 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.eventRepresentationString

    Use run-events-v1 to receive Agent Events Protocol CloudEvents, or ag-ui for 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: complete

A stream of events, each with a RunsStreamFrame! in data.streamRunEvents.