Tools
Tools allow you to extend the capabilities of the LLMs by invoking services.
Adding Tools
Adaline enables you to add tools to LLM that support function calling.
Tools are part of the prompt and are sent to the LLM alongside your messages. You can add multiple tools in your prompt, each representing a unique external function and service that the LLM can invoke.
To add tools, follow these steps:
Choose supported model
Select an appropriate model from dropdown that supports tool calling.
Access Tool Configuration
Navigate to the add tool button to open the tool editor.
Add your tool definition
Create your tool using the provided interface:
- Enter the function name (e.g., get_windspeed)
- Define variables with appropriate data types
- Add descriptions for both the function and its parameters
Enable Tool Choice
Ensure the ‘tool choice’ configuration parameter is properly set in your model settings to allow the LLM to generate tool calls effectively.
none
instructs the LLM to not invoke any tools even though they’re available in the promptauto
lets the LLM decide which tools to use and how many based on the conversation contextrequired
forces the LLM to invoke at least one tool in its response.
For learning about “Tool Response” follow Tool Calling.
JSON Schema Configuration
Adaline supports advanced tool configuration using JSON schema format, giving you precise control over tool definitions and parameter validation.
JSON Schema Structure
When using JSON schema mode, define your tools using the following OpenAI JSON schema structure:
Key Schema Components
- Function Definition
type
: Always set to “function” for tool definitionsschema
: Contains the complete tool specification
- Tool Metadata
name
: The function name that the LLM will calldescription
: Clear explanation of what the tool does
- Parameter Configuration
parameters.type
: Defines the parameter structure (typically “object”)properties
: Individual parameter definitions with types and descriptionsrequired
: Array of mandatory parameter namesadditionalProperties
: Set to false to restrict parameters to defined ones onlystrict
: Enables strict schema validation
This JSON approach provides more granular control over tool behavior and ensures precise parameter validation during execution.