Skip to main content

Overview

When stream: true, the gateway streams the response as Server-Sent Events (SSE). Mako’s streaming goes beyond standard OpenAI streaming — it also emits custom events for tool execution, giving your frontend real-time visibility into the agent’s actions.

Event types

content_delta

Standard OpenAI-compatible content chunk. Your OpenAI SDK handles these automatically.

tool_start

Emitted when the agent begins executing a tool.

tool_trace

Emitted when a tool completes. Contains the result or error.

agent_text

Intermediate text from the model during tool rounds (e.g., reasoning about which tool to call next). Not the final answer.

done

Final event. The last two SSE messages are always:

Consuming the stream

Model naming

Use the alias conductor in your requests. The response will include the canonical model ID mako-32b-conductor. Both the alias and the canonical ID are accepted in the model field.