Defined in: types.ts:774
Emitted when a run completes successfully.
finishReason: "length" | "stop" | "content_filter" | "tool_calls" | null;
finishReason: "length" | "stop" | "content_filter" | "tool_calls" | null;
Defined in: types.ts:779
Why the generation stopped
optional model: string;
optional model: string;
Defined in: types.ts:750
Model identifier for multi-model support
optional rawEvent: unknown;
optional rawEvent: unknown;
Defined in: types.ts:752
Original provider event for debugging/advanced use cases
runId: string;
runId: string;
Defined in: types.ts:777
Run identifier
timestamp: number;
timestamp: number;
Defined in: types.ts:748
type: "RUN_FINISHED";
type: "RUN_FINISHED";
Defined in: types.ts:775
optional usage: object;
optional usage: object;
Defined in: types.ts:781
Token usage statistics
completionTokens: number;
completionTokens: number;
promptTokens: number;
promptTokens: number;
totalTokens: number;
totalTokens: number;
