lm_openai_chat
Send OpenAI-compatible chat requests with explicit message history, JSON schema and function definitions. Returns tool calls, never executes them.
Instructions
OpenAI-compatible chat, explicit message history, JSON schema and function definitions. Returns tool calls; never executes them.
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": "<model>",
"messages": "<messages>"
},
"name": "lm_openai_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| tools | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No | ||
| tool_choice | No | ||
| response_format | No |