Sequence · freehire

Flow: asking the assistant

A bounded tool-calling loop that always ends in exactly one terminal event The Runner calls the LLM gateway on the caller's own credential each round, then either calls a tool and streams the result back or streams a final answer; every path ends in exactly one terminal SSE event. ALT [tool calls] [else — answer text] POST MESSAGE RUN TURN (SSE) PERSIST PROMPT CHAT + TOOLS repeats ≤ MaxSteps rounds (8 default · tailor 16 · autopilot 30) R (return) --> MODEL REPLY CALL TOOLS R (return, region 1) --> TOOL RESULT > User (async SSE notify, region 1, open arrowhead) --> SSE TOOL EVENT > User (headline success, region 2, solid accent) --> SSE END_TURN cap reached → one final call, no tools still exactly one terminal event User assistant handler Runner LLM gateway Tool registry LEGEND call / return async SSE push terminal event annotation