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