MCPcopy Create free account
hub / github.com/google/adk-python / _run_async_impl

Method _run_async_impl

src/google/adk/agents/base_agent.py:362–376  ·  view source on GitHub ↗

Core logic to run this agent via text-based conversation. Args: ctx: InvocationContext, the invocation context for this agent. Yields: Event: the events generated by the agent.

(
      self, ctx: InvocationContext
  )

Source from the content-addressed store, hash-verified

360 yield event
361
362 async def _run_async_impl(
363 self, ctx: InvocationContext
364 ) -> AsyncGenerator[Event, None]:
365 """Core logic to run this agent via text-based conversation.
366
367 Args:
368 ctx: InvocationContext, the invocation context for this agent.
369
370 Yields:
371 Event: the events generated by the agent.
372 """
373 raise NotImplementedError(
374 f'_run_async_impl for {type(self)} is not implemented.'
375 )
376 yield # AsyncGenerator requires having at least one yield statement
377
378 async def _run_live_impl(
379 self, ctx: InvocationContext

Callers 1

run_asyncMethod · 0.95

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected