

- A workflow is a directed graph: nodes perform units of work; edges are one-way connections that say “after this node finishes, run that node.”
- Anything that does work can be a node: an LLM-backed agent, a plain Python function, etc. The runtime treats them uniformly — it follows edges, executes the node, and passes the node’s output along the edge.


STARTis the runtime entry point. FromSTARTyou wire the sequence of nodes to run.- Each node hands its result to the next node via the edge; the runtime transports values along edges.
Every run begins at
START. Failing to include an explicit START edge or clear input/output schemas can produce unpredictable behavior at runtime.classify_request produces a string such as "A1234". That string becomes the node_input for lookup_order, which returns an OrderInfo object with order_id and status. Because draft_reply declares OrderInfo as its input schema, its instruction can reference those fields directly when drafting the response.
classify_request → "A1234", lookup_order → OrderInfo(order_id="A1234", status="Out for delivery"), and draft_reply → a final message like “Your order A1234 is currently Out for delivery.”

- Sequential flows: ADK provides a convenience template,
SequentialAgent, to run sub-agents in order (A → B → C). It’s equivalent to wiring(START → A → B → C). - Branching and routing: Because edges define control flow, you can branch, route, join, or loop. Nodes may decide which outgoing edge to follow at runtime, enabling dynamic flows.
- Pydantic documentation
- Python: https://www.python.org/
- ADK concepts: consult your SDK’s runtime docs (import names like
LlmAgent,Workflow, andEventmay vary by SDK)
Start is a special node: every run begins at
START. Declare clear input/output schemas on agents to make data passing explicit and type-safe across nodes.