Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

StreamProcessorOptions

Interface: StreamProcessorOptions

Defined in: stream/processor.ts:139

Options for StreamProcessor

Properties

chunkStrategy?

ts
optional chunkStrategy: ChunkStrategy;
optional chunkStrategy: ChunkStrategy;

Defined in: stream/processor.ts:140


events?

ts
optional events: StreamProcessorEvents;
optional events: StreamProcessorEvents;

Defined in: stream/processor.ts:142

New event-driven handlers


handlers?

ts
optional handlers: StreamProcessorHandlers;
optional handlers: StreamProcessorHandlers;

Defined in: stream/processor.ts:144

Legacy callback handlers (for backward compatibility)


initialMessages?

ts
optional initialMessages: UIMessage[];
optional initialMessages: UIMessage[];

Defined in: stream/processor.ts:151

Initial messages to populate the processor


jsonParser?

ts
optional jsonParser: object;
optional jsonParser: object;

Defined in: stream/processor.ts:145

parse()

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

string

Returns

any


recording?

ts
optional recording: boolean;
optional recording: boolean;

Defined in: stream/processor.ts:149

Enable recording for replay testing