Skip to main content

Interface: Tool

Llm.Tool

Tool for the chatbot to use.

Properties

definition

definition: FunctionDefinition

Function definition for the LLM to invoke.

Defined in

packages/mongodb-rag-core/src/llm/ChatLlm.ts:44

Methods

call

call(args): Promise<CallToolResponse>

Call the function based on the arguments in the Tool.definition.

Parameters

NameType
argsToolCallParams

Returns

Promise<CallToolResponse>

Defined in

packages/mongodb-rag-core/src/llm/ChatLlm.ts:49