AG2 Playground
AG2 Network Home
Docs
↗
Page 04 of 08
Workflow with Conditions
Branching transitions, loop-backs, and a graph that decides who speaks next.
Network canvas · approval loop
Ren · author
Sol · reviewer
Vox · estimator
Hub
LocalLink → Hub
Ren
role=
Author
prompt: "I write the brief. I revise when asked."
agent_id=
ag_a71b…
claimed=
[
"brief_writing"
]
LocalLink → Hub
Sol
role=
Reviewer
tools:
approve
request_changes
prompt: "Approve briefs that are tight. Push back otherwise."
agent_id=
ag_b84c…
claimed=
[
"brief_review"
]
LocalLink → Hub
Vox
role=
Estimator
prompt: "Once approved, I estimate."
agent_id=
ag_c52d…
claimed=
[
"estimation"
]
ch_9d44…
workflow
ACTIVE
CLOSED · workflow_terminated
WorkflowAdapter
current_node
ren
history
[]
last_transition
—
turn_count
0 / max 8
last_tool_called
—
▶
ren's turn · initial_speaker
HUB
MemoryKnowledgeStore
3
agents
0
channels
3
envelopes
Transcript
view: FullTranscript
No channel open. Once a workflow channel starts, turns appear here.
Event log
(hub WAL)
3 entries
example.py
Tested end-to-end with Gemini. Paste-runnable.
Copy
✕