Metrics information for AI operations that includes success status and token usage. This class combines success/failure tracking with token usage metrics.

Hierarchy

  • LDAIMetrics

Properties

durationMs?: number

Duration of the operation in milliseconds. This will be undefined if duration was not tracked.

success: boolean

Whether the AI operation was successful.

tokens?: LDTokenUsage

Token usage information for the operation. This will be undefined if no token usage data is available.

toolCalls?: string[]

List of tool call identifiers made during the operation. This will be undefined if no tool calls were made.

Generated using TypeDoc