Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

StreamProcessorEvents

Interface: StreamProcessorEvents

Defined in: activities/chat/stream/processor.ts:48

Events emitted by the StreamProcessor

Properties

onApprovalRequest()?

ts
optional onApprovalRequest: (args) => void;
optional onApprovalRequest: (args) => void;

Defined in: activities/chat/stream/processor.ts:63

Parameters

args
approvalId

string

input

any

toolCallId

string

toolName

string

Returns

void


onError()?

ts
optional onError: (error) => void;
optional onError: (error) => void;

Defined in: activities/chat/stream/processor.ts:55

Parameters

error

Error

Returns

void


onMessagesChange()?

ts
optional onMessagesChange: (messages) => void;
optional onMessagesChange: (messages) => void;

Defined in: activities/chat/stream/processor.ts:50

Parameters

messages

UIMessage[]

Returns

void


onStreamEnd()?

ts
optional onStreamEnd: (message) => void;
optional onStreamEnd: (message) => void;

Defined in: activities/chat/stream/processor.ts:54

Parameters

message

UIMessage

Returns

void


onStreamStart()?

ts
optional onStreamStart: () => void;
optional onStreamStart: () => void;

Defined in: activities/chat/stream/processor.ts:53

Returns

void


onTextUpdate()?

ts
optional onTextUpdate: (messageId, content) => void;
optional onTextUpdate: (messageId, content) => void;

Defined in: activities/chat/stream/processor.ts:71

Parameters

messageId

string

content

string

Returns

void


onThinkingUpdate()?

ts
optional onThinkingUpdate: (messageId, content) => void;
optional onThinkingUpdate: (messageId, content) => void;

Defined in: activities/chat/stream/processor.ts:78

Parameters

messageId

string

content

string

Returns

void


onToolCall()?

ts
optional onToolCall: (args) => void;
optional onToolCall: (args) => void;

Defined in: activities/chat/stream/processor.ts:58

Parameters

args
input

any

toolCallId

string

toolName

string

Returns

void


onToolCallStateChange()?

ts
optional onToolCallStateChange: (messageId, toolCallId, state, args) => void;
optional onToolCallStateChange: (messageId, toolCallId, state, args) => void;

Defined in: activities/chat/stream/processor.ts:72

Parameters

messageId

string

toolCallId

string

state

ToolCallState

args

string

Returns

void