Optional durationDuration of the operation in milliseconds. This will be undefined if duration was not tracked.
Whether the AI operation was successful.
Optional tokensToken usage information for the operation. This will be undefined if no token usage data is available.
Optional toolList of tool call identifiers made during the operation. This will be undefined if no tool calls were made.
Generated using TypeDoc
Metrics information for AI operations that includes success status and token usage. This class combines success/failure tracking with token usage metrics.