Agent Chat Completions
lyzr_agent_chat_completionsSend chat messages to a specific Lyzr agent and receive completions. Use this endpoint to interact with an agent using OpenAI-style conversation format, optionally streaming responses.
Instructions
OpenAI-compatible chat/completions endpoint scoped to a specific agent.
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": {
"agent_id": "<agent_id>",
"messages": "<messages>"
},
"name": "lyzr_agent_chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | No | Whether to stream the response (default false) | |
| agent_id | Yes | The agent id | |
| messages | Yes | OpenAI-style chat messages |