Skip to main content

LLMGenerationCompletedEvent

Section ID: DOC-API-EVENT-u1u0sjgmch#overview

Event emitted when a generation run reaches a terminal state. The event context identifies the associated conversation. Use this in a guide: Integrations · API Reference · Event catalog · Update your backend when an assistant finishes

Payload​

Section ID: DOC-API-EVENT-u1u0sjgmch#payload

Payload fields: LLMGenerationCompletedEvent.

Payload examples​

Section ID: DOC-API-EVENT-u1u0sjgmch#examples

These are illustrations of the selected payload Schema, not complete delivery envelopes. Transport metadata is supplied by the platform.

event-llm-generation-completed​

Section ID: DOC-API-EVENT-u1u0sjgmch#example-event-llm-generation-completed

Illustrative payload, not a captured delivery. Identifiers, tool names and outcomes are examples; omitted fields depend on the event.

API JSON uses JSON field names (camelCase).

{
"runId": "9d4c2e1f-27b1-4304-ae54-af7fe876df31",
"status": "WORKFLOW_STATUS_COMPLETED",
"loopCount": 1,
"durationMs": "1250",
"usage": {
"promptTokens": 412,
"completionTokens": 88,
"totalTokens": 500
}
}

Notes​

Section ID: DOC-API-EVENT-u1u0sjgmch#notes

In the live view, this event replaces the status view for the individual generation run within its conversation.

Event-specific delivery guarantees, ordering, retention and lifecycle status are unspecified.

Audiences​

Section ID: DOC-API-EVENT-u1u0sjgmch#audiences

  • Audience: Live view Current conversation client projection.

  • Audience: Tenant webhook Sent to subscribed tenant webhook endpoints.

Delivery and lifecycle​

Section ID: DOC-API-EVENT-u1u0sjgmch#declared-intent

  • Live write intent: Replace

Live destination meaning​

Section ID: DOC-API-EVENT-u1u0sjgmch#live-destination-meaning

Status view for the individual generation run within its conversation.

Document ID: DOC-API-EVENT-u1u0sjgmch