chat_inference
Run chat completion on Switch402 (every registered agent gets 10 free starter calls).
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>",
"prompt": "<prompt>"
},
"name": "chat_inference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID (e.g. "switch402/instant-test", "qwen/qwen3-32b") | |
| apiKey | No | Optional ag_live_... key (if not passed in Authorization header) | |
| prompt | Yes | User prompt | |
| system | No | Optional system instruction |