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

Method run

tests/unittests/workflow/workflow_testing_utils.py:384–399  ·  view source on GitHub ↗
(
      self,
      *,
      ctx: Context,
      node_input: Any,
  )

Source from the content-addressed store, hash-verified

382
383 @override
384 async def run(
385 self,
386 *,
387 ctx: Context,
388 node_input: Any,
389 ) -> AsyncGenerator[Any, None]:
390 iteration_count = self.tracker.get('iteration_count', 0) + 1
391 self.tracker['iteration_count'] = iteration_count
392 self.tracker.setdefault('attempt_counts', []).append(ctx.attempt_count)
393
394 if iteration_count < self.succeed_on_iteration:
395 raise self.exception_to_raise
396
397 yield Event(
398 output=self.message,
399 )

Callers

nothing calls this directly

Calls 4

EventClass · 0.90
setdefaultMethod · 0.80
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected