Docs
CodeRabbit
Cloudflare
Railway
OpenRouter
Clerk
WorkOS
AG Grid
Netlify
SerpAPI
Electric
Prisma
Sentry
Unkey
CodeRabbit
Cloudflare
Railway
OpenRouter
Clerk
WorkOS
AG Grid
Netlify
SerpAPI
Electric
Prisma
Sentry
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References

RunFinishedEvent

Interface: RunFinishedEvent

Defined in: packages/ai/src/types.ts:985

Emitted when a run completes successfully.

@ag-ui/core provides: , , TanStack AI adds: , ,

Extends

Indexable

ts
[k: string]: unknown
[k: string]: unknown

Properties

finishReason?

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

Defined in: packages/ai/src/types.ts:989

Why the generation stopped


model?

ts
optional model: string;
optional model: string;

Defined in: packages/ai/src/types.ts:987

Model identifier for multi-model support


usage?

ts
optional usage: TokenUsage<ProviderUsageDetails>;
optional usage: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:991

Token usage statistics with optional detailed breakdowns and provider-reported cost.