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>"
}
]
}
Generate responses using the specified model with integrated external tools.
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>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Parameters for generating completions with external tools.
The body is of type object
.
Chat completions response with tool calls
The response is of type object
.
Was this page helpful?