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

Method _run_live_impl

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

Core logic to run this agent via video/audio-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

376 yield # AsyncGenerator requires having at least one yield statement
377
378 async def _run_live_impl(
379 self, ctx: InvocationContext
380 ) -> AsyncGenerator[Event, None]:
381 """Core logic to run this agent via video/audio-based conversation.
382
383 Args:
384 ctx: InvocationContext, the invocation context for this agent.
385
386 Yields:
387 Event: the events generated by the agent.
388 """
389 raise NotImplementedError(
390 f'_run_live_impl for {type(self)} is not implemented.'
391 )
392 yield # AsyncGenerator requires having at least one yield statement
393
394 @property
395 def root_agent(self) -> BaseAgent:

Callers 1

run_liveMethod · 0.95

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected