LlmCompletePayload
Payload for “llm_complete” events — an LLM request completed.
Class Diagram
Section titled “Class Diagram”---
title: LlmCompletePayload
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class LlmCompletePayload {
+string requestId
+string serviceRequestId
+TokenUsage usage
+float64 durationMs
}
class TokenUsage {
+int32 promptTokens
+int32 completionTokens
+int32 totalTokens
}
LlmCompletePayload *-- TokenUsage
Yaml Example
Section titled “Yaml Example”requestId: req_abc123serviceRequestId: srv_abc123durationMs: 820Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| requestId | string | Provider request identifier, when supplied by the SDK/API |
| serviceRequestId | string | Service request identifier, when supplied by the SDK/API |
| usage | TokenUsage | Token usage reported by the provider |
| durationMs | float64 | LLM call duration in milliseconds |
Composed Types
Section titled “Composed Types”The following types are composed within LlmCompletePayload: