Agents
Stream agent execution in real-time
Changed onStream an existing agent execution in real-time via SSE, providing live message chunks, tool calls, and status updates until completion.
post/v2/agents/{key}/stream-task
Request
- Base URLhttps://my.orq.ai
- URLhttps://my.orq.ai/v2/agents/{key}/stream-task
- AuthHTTP bearer
Path parameters
keystring required
The key or ID of the agent to invoke
Request body
Example request
{
"message": {
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
},
"identity": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"contact": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"thread": {
"id": "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"tags": [
"customer-support",
"priority-high"
]
}
}Response
Server-Sent Event stream successfully established. Returns real-time events including agent messages, tool calls, status updates, and completion signals. The stream ends with a [DONE] sentinel value.
Changes
- info
added the optional property
//////to the response with the status - info
added the optional property
////to the response with the status
- info
- warning
removed the optional property
//////from the response with the status - warning
removed the optional property
////from the response with the status
- warning