Interface: Tool
Tool for the chatbot to use.
Properties
definition
• definition: FunctionDefinition
Function definition for the LLM to invoke.
Defined in
packages/mongodb-chatbot-server/src/services/ChatLlm.ts:50
Methods
call
▸ call(args
): Promise
<CallToolResponse
>
Call the function based on the arguments in the Tool.definition.
Parameters
Name | Type |
---|---|
args | ToolCallParams |
Returns
Promise
<CallToolResponse
>