Token corresponding to the environment ID, obtained through login authentication
Accept header for streaming response
Agent ID
Agent conversation successful, returns SSE format. Each event follows the SSE specification with JSON data:
data: {"type": "text", "content": "Hello"}
data: {"type": "tool-call-start", "toolCallId": "call_123", "toolCallName": "search"}
data: {"type": "tool-call-args", "toolCallId": "call_123", "delta": "{\"query\": \"weather\"}"}
data: {"type": "tool-call-end", "toolCallId": "call_123"}
data: {"type": "tool-result", "result": "Sunny, 25°C", "toolCallId": "call_123"}
data: [DONE]The response is a stream of Server-Sent Events where each event contains JSON data representing different types of agent interactions.