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
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

StreamProcessorOptions

Interface: StreamProcessorOptions

Defined in: packages/ai/src/activities/chat/stream/processor.ts:117

Options for StreamProcessor

Properties

chunkStrategy?

ts
optional chunkStrategy: ChunkStrategy;
optional chunkStrategy: ChunkStrategy;

Defined in: packages/ai/src/activities/chat/stream/processor.ts:118


events?

ts
optional events: StreamProcessorEvents;
optional events: StreamProcessorEvents;

Defined in: packages/ai/src/activities/chat/stream/processor.ts:120

Event-driven handlers


initialMessages?

ts
optional initialMessages: UIMessage<unknown>[];
optional initialMessages: UIMessage<unknown>[];

Defined in: packages/ai/src/activities/chat/stream/processor.ts:127

Initial messages to populate the processor


jsonParser?

ts
optional jsonParser: object;
optional jsonParser: object;

Defined in: packages/ai/src/activities/chat/stream/processor.ts:121

parse()

ts
parse: (jsonString) => any;
parse: (jsonString) => any;
Parameters
jsonString

string

Returns

any


recording?

ts
optional recording: boolean;
optional recording: boolean;

Defined in: packages/ai/src/activities/chat/stream/processor.ts:125

Enable recording for replay testing