Skip to main content

Interface: Tool

ragCore.Llm.Tool

Tool for the chatbot to use.

Properties

definition

definition: FunctionDefinition

Function definition for the LLM to invoke.

Defined in

mongodb-rag-core/build/llm/ChatLlm.d.ts:39

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

mongodb-rag-core/build/llm/ChatLlm.d.ts:43