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

Method run

tests/unittests/workflow/test_workflow_failures.py:70–85  ·  view source on GitHub ↗
(
      self,
      *,
      ctx: Context,
      node_input: Any,
  )

Source from the content-addressed store, hash-verified

68
69 @override
70 async def run(
71 self,
72 *,
73 ctx: Context,
74 node_input: Any,
75 ) -> AsyncGenerator[Any, None]:
76 iteration_count = self.tracker.get('iteration_count', 0) + 1
77 self.tracker['iteration_count'] = iteration_count
78 self.tracker.setdefault('attempt_counts', []).append(ctx.attempt_count)
79
80 if iteration_count < self.succeed_on_iteration:
81 raise self.exception_to_raise
82
83 yield Event(
84 output=self.message,
85 )
86
87
88async def _run_workflow(wf, message='start'):

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