Chat with agent (streaming)
Agent/stream-chat
POST
/agent/stream-chatSend a message to an agent and receive the response as a Server-Sent Events (SSE) stream. Events include message_start, content_delta, tool_use, tool_result, message_end, and error.
Input
What is the patient's current condition?
context: Respond concisely and with clear rationalesession id: session-abc123agent id: agent-123enhanced reasoning: false
Result
typecontent_deltasession_idsession_123contentI'll create a patient record...successSuccess
messageStreaming chat response. Each frame is a standard SSE record (`event:` line + `data:` JSON line). The example shows a single `content_delta` payload — multiple frames stream until `message_end`.
function_namelang2fhir_searchfunction_args{}function_result{}