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/typescript/ai/src/activities/chat/stream/processor.ts:106

Options for StreamProcessor

Properties

chunkStrategy?

ts
optional chunkStrategy: ChunkStrategy;
optional chunkStrategy: ChunkStrategy;

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


events?

ts
optional events: StreamProcessorEvents;
optional events: StreamProcessorEvents;

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

Event-driven handlers


initialMessages?

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

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

Initial messages to populate the processor


jsonParser?

ts
optional jsonParser: object;
optional jsonParser: object;

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

parse()

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

string

Returns

any


recording?

ts
optional recording: boolean;
optional recording: boolean;

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

Enable recording for replay testing