POST
/
agent
/
responses
Agent Responses
curl --request POST \
  --url https://{controlPlaneURL}/api/llm/agent/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "messages": [
    {
      "role": "system",
      "content": "<string>",
      "name": "<string>"
    }
  ],
  "mcp_servers": [
    {
      "integration_fqn": "<string>",
      "url": "<string>",
      "headers": {},
      "enable_all_tools": true,
      "tools": [
        {
          "name": "<string>"
        }
      ]
    }
  ],
  "max_tokens": 123,
  "temperature": 123,
  "top_p": 123,
  "stream": true,
  "top_k": 123,
  "iteration_limit": 5
}'
{
  "id": "<string>",
  "object": "chat.completion.chunk",
  "created": 123,
  "model": "<string>",
  "service_tier": "<string>",
  "system_fingerprint": "<string>",
  "choices": [
    {
      "index": 123,
      "delta": {
        "content": "<string>",
        "role": "<string>",
        "refusal": "<any>"
      },
      "logprobs": "<any>",
      "finish_reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parameters for generating completions with external tools.

The body is of type object.

Response

200
text/event-stream

Chat completions response with tool calls

The response is of type object.