Skip to main content

Type Alias: ProcessMessageProps

ProcessMessageProps: object

Defined in: packages/core/src/types.ts:416

Type of ProcessMessageProps

Type declaration

imageMessage?

optional imageMessage: string

message?

optional message: string

onStepFinish()?

optional onStepFinish: (event, toolCallMessages) => Promise<void> | void

The callback function to handle the step finish.

Parameters

event

StepResult<ToolSet>

The step result returned from Vercel AI SDK

toolCallMessages

ToolCallMessage[]

The tool call messages, that can be used to update the UI, see ToolCallMessage

Returns

Promise<void> | void

streamMessageCallback

streamMessageCallback: StreamMessageCallback

textMessage?

optional textMessage: string

userActions?

optional userActions: UserActionProps[]

useTool?

optional useTool: boolean

Param

The text message to be processed.

Param

The image message to be processed.

Param

The user actions to be processed.

Param

The stream message callback to stream the message back to the UI.

Param

The callback function to handle the step finish.

Param

The flag to indicate if the tool is used.

Param

The message to be processed.