Run agent with AG-UI streaming response
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Accept | text/event-stream | Recommended |
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | User message |
thread_id | string | No | Thread/conversation ID |
run_id | string | No | Run identifier |
| Event | Description |
|---|---|
RUN_STARTED | Agent run has started |
TEXT_MESSAGE_START | Text message beginning |
TEXT_MESSAGE_CONTENT | Streaming text content |
TEXT_MESSAGE_END | Text message complete |
TOOL_CALL_START | Tool call beginning |
TOOL_CALL_ARGS | Tool call arguments |
TOOL_CALL_END | Tool call complete |
RUN_FINISHED | Agent run complete |
RUN_ERROR | Error occurred |
| Status | Description |
|---|---|
400 | Bad request - missing message |
500 | Internal server error |