Phenoml Logo

Chat with agent (streaming)

Agent/stream-chat
POST/agent/stream-chat

Send 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_delta
session_idsession_123
contentI'll create a patient record...
success
Success
message

Streaming 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_search
function_args{}
function_result{}
Terms of Service|Privacy Policy