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