Defined in: types.ts:714
Emitted when a run completes successfully.
finishReason: "length" | "stop" | "content_filter" | "tool_calls" | null;
Defined in: types.ts:719
Why the generation stopped
optional model: string;
Defined in: types.ts:690
Model identifier for multi-model support
optional rawEvent: unknown;
Defined in: types.ts:692
Original provider event for debugging/advanced use cases
runId: string;
Defined in: types.ts:717
Run identifier
timestamp: number;
Defined in: types.ts:688
type: "RUN_FINISHED";
Defined in: types.ts:715
optional usage: object;
Defined in: types.ts:721
Token usage statistics
completionTokens: number;
promptTokens: number;
totalTokens: number;