Import your agents and tools
Define a Python function with the @flow decorator
@flow
decorator to define your flow. In the decorator, specify the flow’s name
, description
, input_schema
, and output_schema
.Flow
and return a Flow
object.tool()
, agent()
, and edge-building functions like sequence()
or edge()
.Branch
and Loop
nodes, use a Python expression in the evaluator
to define the branching or looping condition. For more information, see Flow expressions.Import the flow
orchestrate tools import
command in the CLI.Test the flow locally in the ADK
Add the flow to one agent