Skip to main content

Interface: ToolCallParams

Parameters for invoking a tool call.

Properties

conversation

Optional conversation: Conversation<ConversationCustomData>

Conversation in the DB. Useful for getting metadata to use in tool calls.

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:67


dataStreamer

Optional dataStreamer: DataStreamer

Data streamer with connection open to send events to the client.

For example, you could use this to send updates about what the tool is doing to the client.

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:76


functionArgs

functionArgs: unknown

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:62


request

Optional request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

Current Express.js request from the client. Useful for getting metadata to use in tool calls.

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:82