Tool Configuration
A tool consists of:- Name: Unique identifier (e.g.,
check_inventory). - Description: Natural language explanation of when the LLM should use this tool (e.g., “Use this to check if an item is in stock”).
- API Config:
- URL: The endpoint to call.
- Method: GET, POST, PUT, DELETE.
- Headers: Auth tokens or content types.
- Parameters: JSON Schema defining the data the LLM needs to extract from the user.
Example
Scenario: A user asks, “Do you have any red sneakers in size 10?” Tool Config:- LLM analyzes user speech.
- LLM decides to call
check_inventorywith{"item": "sneakers", "color": "red", "size": 10}. - Butter AI executes the HTTP request to your backend.
- Your backend returns
{"available": true, "quantity": 5}. - LLM receives this data and says: “Yes, we have 5 pairs in stock.”
Creating Tools
You can create tools via the API and then add thetool_id to your agent’s custom_tools list.