Prerequisites
Before adding the Endpoint (LLM Call) Tool, ensure that you have:Adding the Endpoint (LLM Call) Tool
Navigate to Your Assistant
- Go to the Assistants section in the main navigation menu.
- Select the assistant you want to configure.
- Click “Configure assistant” in the top right corner.
- Select “Tools and MCP” from the left sidebar menu.
- Click on Add Tools.
Configure the Tool
When configuring an Endpoint (LLM Call) tool, you’ll need to provide several key elements:
-
Name: A unique identifier for your tool (e.g., “fetch_user_details”)
- Use descriptive names that indicate the tool’s purpose
- Follow a consistent naming convention (e.g., snake_case)
-
Description: Details on when and how to use the function
- Example: “Fetch user name and user role”
- Provide clear guidance on the tool’s purpose and use cases
- This helps the model determine when to invoke the tool
-
Fields: Define parameters in JSON format following the OpenAI Function Tool Call schema:
This schema follows the OpenAI Function Tool Call format where
additionalProperties: falseensures only defined properties are allowed,propertiesdefines the parameters the tool accepts with descriptions and data types, andrequiredspecifies which parameters must be included. - Expected Action: From the list select “Endpoint (LLM Call)”.
-
Endpoint Selection: Choose an existing endpoint from the dropdown, or create a new one.
- Select from the dropdown list of available endpoints
- Or create a new endpoint directly
Using the Endpoint (LLM Call) Tool
Once configured, your assistant will automatically use the Endpoint Tool when appropriate. The process typically follows these steps:- The assistant analyzes the user’s query or conversation context.
- If a specialized task is needed, it calls the Endpoint Tool with the necessary parameters.
- The tool makes an API call to the specified endpoint language model.
- The assistant incorporates the response from the endpoint language model into its reply.
Managing the Endpoint (LLM Call) Tool
You can modify or remove the Endpoint Tool at any time:- Go to your assistant’s configuration page.
- Select “Tools and MCP” from the left sidebar menu.
- Find the Endpoint Tool in the list.
- Click on Edit Tool to modify its configuration or Delete Tool to delete it.
Best Practices
- Use the Endpoint Tool for specialized tasks that benefit from additional LLM capabilities.
- Consider performance implications when making additional API calls.
- Carefully craft prompts to get the most relevant results from additional models.
- Test different model configurations to find the optimal settings for your use case.