Interface: LlmCallToolParams
Llm.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-rag-core/build/llm/ChatLlm.d.ts:100
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-rag-core/build/llm/ChatLlm.d.ts:108
messages
• messages: ChatCompletionMessageParam
& { 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-rag-core/build/llm/ChatLlm.d.ts:96
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-rag-core/build/llm/ChatLlm.d.ts:113