agent_id: ID of the agent for which the response is to be created.start, status, token, error, end) culminating in the final result or an error message.curl --location -g --request POST 'https:///response-service/api/v2/agents//responses/stream' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"caching_enabled": false,
"chat_thread_id": 1,
"created_by": "[email protected]",
"history": [
{
"bot": "Paris is the capital of France.",
"user": "What is the capital of France?"
}
],
"is_file_attached": false,
"overrides": {
"corpus_ids": [
1
],
"log_intermediate_response": true,
"retrieve_data_points": true
},
"query_source": "web",
"user_query": "and what about the weather?"
}'event: start
data: {"message":"Analyzing...","step":"start"}
event: status
data: {"message":"Processing query...","step":"query_rewrite_start"}
event: status
data: {"message":"Preparing response...","step":"assistant_start"}
event: token
data: {"delta":"Hello","step":"assistant_stream"}
event: token
data: {"delta":"!","step":"assistant_stream"}
event: end
data: {"message":"Finished.","step":"end","output":{"answer":"Hello! ...","thread_id":1,"agent_response_id":1,"references":[],"chat_thread_name":"Greeting Exchange","blocked":false,"cache_hit":false},"success":true}