generate_with_tools
Generate chat responses by giving the language model a list of tools it can invoke during the conversation.
Instructions
Execute chat generation with a list of tools exposed to the model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_name": "<model_name>",
"messages": "<messages>",
"tools": "<tools>"
},
"name": "generate_with_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | Yes | ||
| messages | Yes | ||
| model_name | Yes |