Agentic

Exit map

Every way the system can stop. Usually the most revealing one to draw.

Agentic — Exit map: rendered example
Rendered by Gnomon from the source below. No edits.

The source

48 lines of PlantUML, and pulls in Agentic notation. Copy it, or open the template inside Gnomon and render it as it is.

@startuml
!include <agentic/core>

title Support assistant — exit map

' VIEWPOINT: Exit map — every way out, and where each one goes. Exits are the
' metric surface: containment is computed from them, and it is the number the
' business asks about. All eleven types exist in the notation so the renderer
' can list the ones you did NOT model — a drawing has no opinion about what
' isn't on it. One macro each, so the set is discoverable by typing "Exit_":
'   Exit_Complete   Exit_AgentTransfer  Exit_Human     Exit_Guardrail
'   Exit_Refusal    Exit_Budget         Exit_Loop      Exit_Context
'   Exit_Interrupt  Exit_Retries        Exit_Timeout
' A bare Exit() is one whose type has not been decided yet, and the renderer
' says so rather than guessing.
' DONE WHEN: all eleven have been considered, and the omissions are deliberate.

Actor(customer, "Customer")
Channel(inbound, "Inbound", "chat · carries question")

Agent(assistant, "Assistant", "opus-5 · max 8 cycles")

Exit_Complete(done, "Answered")
Exit_Human(human, "Escalate to a human")
Exit_AgentTransfer(agent2, "Passed to billing agent")
Exit_Guardrail(blocked, "Blocked by guardrail")
Exit_Refusal(refused, "Model refused")
Exit_Budget(budget, "Budget exhausted")
Exit_Loop(loop, "Cycle limit hit")
Exit_Context(ctx, "Context exceeded")
Exit_Interrupt(interrupt, "Caller hung up")
Exit_Retries(retries, "Retries exhausted")
Exit_Timeout(timeout, "Upstream timeout")

Rel(customer, inbound)
Rel(inbound, assistant)
Rel_LLM(assistant, done, "question fully answered")
Rel_LLM(assistant, human, "needs a judgement call")
Rel_Expr(assistant, agent2, "intent == 'billing'")
Rel_Expr(assistant, blocked, "classifier == 'unsafe'")
Rel_Expr(assistant, refused, "stop_reason == 'refusal'")
Rel_Expr(assistant, budget, "tokens_used > 200000")
Rel_Expr(assistant, loop, "cycles >= 8")
Rel_Expr(assistant, ctx, "context_used > 0.95")
Rel_Expr(assistant, interrupt, "channel_closed == true")
Rel_Expr(assistant, retries, "tool_retries >= 3")
Rel_Expr(assistant, timeout, "tool_latency_ms > 30000")
@enduml

Render this offline

This template ships in Gnomon and renders on your machine, with no account and nothing sent to a server. The browser editor is free and needs no install.

Get GnomonOpen the browser editor

Others in Agentic architecture diagrams