Chat with a Dagon model
dagon_chatSend a chat completion to a Dagon model (POST /v1/chat/completions, non-streaming) and return the reply with its signed receipt id. Spends credits of the connection's Authorization: Bearer key.
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>"
},
"name": "dagon_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id from dagon_models. | |
| prompt | No | User message. Use this or messages. | |
| system | No | Optional system prompt, prepended to the conversation. | |
| messages | No | Full conversation, OpenAI chat format. Use this or prompt. | |
| max_tokens | No | ||
| temperature | No |