MCPcopy Index your code
hub / github.com/google/adk-python / orchestrate

Function orchestrate

contributing/samples/workflows/dynamic_nodes/agent.py:62–72  ·  view source on GitHub ↗
(ctx: Context, node_input: str)

Source from the content-addressed store, hash-verified

60
61@node(rerun_on_resume=True)
62async def orchestrate(ctx: Context, node_input: str) -> str:
63 yield Event(state={"topic": node_input})
64
65 while True:
66 headline = await ctx.run_node(generate_headline)
67 feedback = Feedback.model_validate(
68 await ctx.run_node(evaluate_headline, node_input=headline)
69 )
70 if feedback.grade == "tech-related":
71 yield headline
72 break
73
74
75root_agent = Workflow(

Callers

nothing calls this directly

Calls 3

EventClass · 0.90
run_nodeMethod · 0.80
model_validateMethod · 0.80

Tested by

no test coverage detected