| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample composes three short, single-purpose live (voice) agents into a graph-based workflow:
Each stage runs in mode='task' and hands a typed result to the next (GreeterOutput, DobOutput). The stages are wired directly into the workflow's edges, so the framework runs them in order.
Hi, yes, this is John Doe
Confirms identity so greeter_agent can complete and hand off.
My date of birth is July 12th, 1985
Triggers validate_date_of_birth in dob_verifier_agent; this DOB matches the mocked record and verifies the caller.
No, no other questions. Thanks!
Lets goals_agent wrap up the call and end with "Goodbye.".
graph TD
START --> greeter_agent
greeter_agent --> dob_verifier_agent
dob_verifier_agent -->|calls| validate_date_of_birth(validate_date_of_birth)
dob_verifier_agent --> goals_agent
Sequence live agents with mode='task': Each stage is an Agent set to mode='task', so it runs its own turn-taking loop and completes before the next stage begins. Because the agents use a live model (gemini-live-2.5-flash-native-audio), the whole workflow runs as a voice conversation.
Pass typed handoffs between stages: Give each stage an output_schema (e.g. GreeterOutput, DobOutput) so its result is a validated, typed value that the next stage receives as input.
Sequence the stages directly in edges: Wire the agents into the Workflow edges in order; no routing functions are needed for a linear flow:
root_agent = Workflow(
name='workflow',
edges=[
(START, greeter_agent),
(greeter_agent, dob_verifier_agent),
(dob_verifier_agent, goals_agent),
],
)Run the agent with the ADK web interface and start a Live Session:
uv run adk web contributing/samples/live/workflowEvaluate the workflow in live mode: test_config.json and workflow.evalset.json score the workflow with an llm_audio user simulator that adapts to each stage instead of following a fixed script.
uv run adk eval \
contributing/samples/live/workflow \
contributing/samples/live/workflow/workflow.evalset.json \
--config_file_path contributing/samples/live/workflow/test_config.json| Back | FazBrowse Home | New Git URL |