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
)
| 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: |