Append run events

appendRunEvents(command: RunsAppendRunEventsCommand!, idempotencyKey: String): RunsAppendEventsResult!

Arguments

ArgumentTypeRequiredDescription
commandRunsAppendRunEventsCommand!Yes
idempotencyKeyStringNoRetry key for this append (1-128 characters); overrides Idempotency-Key. Task and Workflow runs require this argument or the Idempotency-Key HTTP header; Agent runs may omit both.

Input fields

command

RunsAppendRunEventsCommand

FieldTypeRequired
runIdID!Yes
inputRunsAppendRunEventsCommandInput!Yes

Response

Returns RunsAppendEventsResult!. Open the type for its fields and nested types.

FieldType
latestEventIdFloat!
latestExternalEventSequenceFloat
appendedCountFloat!
acknowledgedEventIds[Float!]
recoveryCheckpointRunsAppendEventsResultRecoveryCheckpoint
runIdID!
modelCallCaptures[RunsAppendEventsResultModelCallCaptures!]
toolCallAdmissions[RunsAppendEventsResultToolCallAdmissions!]

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation AppendRunEvents($command: RunsAppendRunEventsCommand!, $idempotencyKey: String) {  appendRunEvents(command: $command, idempotencyKey: $idempotencyKey) {    runId    acknowledgedEventIds    appendedCount    latestEventId    latestExternalEventSequence  }}
variables.json
{  "command": {    "runId": "11111111-1111-4111-8111-111111111111",    "input": {      "events": [        {          "type": "TEXT_MESSAGE_START",          "messageId": "message_example",          "contentId": "content_example",          "role": "assistant"        }      ]    }  }}