Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Persistence (Advanced)
Embeddings
Reranking
Evaluate
Sandboxes (Advanced)
Class References
Function References
Interface References
Type Alias References
Variable References

EmitCustomEventOptions

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

Options for a single emitCustomEvent call, on both the tool-execution and middleware contexts.

Properties

batch?

ts
optional batch?: boolean;
optional batch?: boolean;

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

Keep this event in the durability batch with later chunks. CUSTOM events flush as soon as they are emitted, so a progress indicator can render at emit time. Pass { batch: true } for a high-volume stream that should share appends with later output. process.stdout, process.stderr, sandbox.file, and sandbox.file.diff already batch.