Skip to main content

Interface: LlmCallToolParams

Parameters for invoking a tool call from the LLM.

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:125


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:134


messages

messages: ChatRequestMessage & { content: null | string ; embedding?: number[] ; role: OpenAiMessageRole }[]

Messages to send to the LLM. The tool call invocation information should be in the last message.

Defined in

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


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:140