Ein Flow ist ein Block, der die Schritte in sich enthält. Das Schlüsselwort end schließt ihn.
agentflow-beta TB
flow worker["Worker"]
job["Do the job"]@{ shape: task }
endDas Wort nach shape: sagt, was der Schritt ist. input, task, tool, decision, action und refdoc sind die sechs.
agentflow-beta LR
brief["Brief"]@{ shape: input }
draft["Draft copy"]@{ shape: task }
check["spell_check"]@{ shape: tool }
guide["Style guide"]@{ shape: refdoc }
ship["Publish"]@{ shape: action }
ok["Ready?"]@{ shape: decision }
brief --> draft --> check --> ship
ok --> shipEin Pfeil mit Beschriftung sagt, warum. Ein Kreuz ist ein Wiederholungsversuch, eine gepunktete Linie zeigt auf etwas zum Lesen.
agentflow-beta TB
check["Tests pass?"]@{ shape: decision }
ship["Ship it"]@{ shape: action }
fix["Fix the build"]@{ shape: task }
logs["Build logs"]@{ shape: refdoc }
check -- yes --> ship
check -- no --> fix
fix --x check
fix -.- logsEin Flow kann andere Flows enthalten. Die inneren sind die Subagenten.
agentflow-beta TB
flow team["Content Team"]
flow researcher["Researcher"]
gather["Gather sources"]@{ shape: task }
end
flow writer["Writer"]
compose["Compose draft"]@{ shape: task }
end
researcher --> writer
end