Skip to content
Prompty

LlmCompletePayload

Payload for “llm_complete” events — an LLM request completed.

---
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
requestId: req_abc123
serviceRequestId: srv_abc123
durationMs: 820
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

The following types are composed within LlmCompletePayload: