POST
/
orchestrate
/
{agent_id}
/
chat
/
completions
curl --request POST \
  --url http://localhost/api/v1/orchestrate/{agent_id}/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "<string>",
      "content": [
        {
          "response_type": "conversational_search"
        }
      ]
    }
  ],
  "additional_parameters": {},
  "context": {},
  "stream": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "object": "<string>",
  "created": 123,
  "model": "<string>",
  "choices": [
    {}
  ],
  "thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Headers

X-IBM-THREAD-ID
string | null

Optional header to specify the thread ID

Path Parameters

agent_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.