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

Method _run_node_loop

src/google/adk/workflow/_node_runner.py:263–273  ·  view source on GitHub ↗

Iterate node.run(), track events in context, and enqueue them.

(self, ctx: Context, node_input: Any)

Source from the content-addressed store, hash-verified

261 pass
262
263 async def _run_node_loop(self, ctx: Context, node_input: Any) -> None:
264 """Iterate node.run(), track events in context, and enqueue them."""
265 from ..utils.context_utils import Aclosing
266
267 logger.debug("node %s execute loop start.", ctx.node_path)
268 async with Aclosing(self._node.run(ctx=ctx, node_input=node_input)) as agen:
269 async for event in agen:
270 self._track_event_in_context(event, ctx)
271 await self._enqueue_event(event, ctx)
272
273 logger.debug("node %s execute loop end.", ctx.node_path)
274
275 async def _run_node_loop_with_timeout(
276 self, ctx: Context, node_input: Any, timeout: float

Callers 2

_execute_nodeMethod · 0.95

Calls 3

_enqueue_eventMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected