Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Class References
Function References
Interface References
Type Alias References
Variable References

RunFinishedEvent

Interface: RunFinishedEvent

Defined in: types.ts:775

Emitted when a run completes successfully.

Extends

Properties

finishReason

ts
finishReason: "length" | "stop" | "content_filter" | "tool_calls" | null;
finishReason: "length" | "stop" | "content_filter" | "tool_calls" | null;

Defined in: types.ts:780

Why the generation stopped


model?

ts
optional model: string;
optional model: string;

Defined in: types.ts:751

Model identifier for multi-model support

Inherited from

BaseAGUIEvent.model


rawEvent?

ts
optional rawEvent: unknown;
optional rawEvent: unknown;

Defined in: types.ts:753

Original provider event for debugging/advanced use cases

Inherited from

BaseAGUIEvent.rawEvent


runId

ts
runId: string;
runId: string;

Defined in: types.ts:778

Run identifier


timestamp

ts
timestamp: number;
timestamp: number;

Defined in: types.ts:749

Inherited from

BaseAGUIEvent.timestamp


type

ts
type: "RUN_FINISHED";
type: "RUN_FINISHED";

Defined in: types.ts:776

Overrides

BaseAGUIEvent.type


usage?

ts
optional usage: object;
optional usage: object;

Defined in: types.ts:782

Token usage statistics

completionTokens

ts
completionTokens: number;
completionTokens: number;

promptTokens

ts
promptTokens: number;
promptTokens: number;

totalTokens

ts
totalTokens: number;
totalTokens: number;