Extract root agent from either a BaseAgent or App object.
(self, agent_or_app: BaseAgent | App)
| 742 | return runner |
| 743 | |
| 744 | def _get_root_agent(self, agent_or_app: BaseAgent | App) -> BaseAgent: |
| 745 | """Extract root agent from either a BaseAgent or App object.""" |
| 746 | if isinstance(agent_or_app, App): |
| 747 | return agent_or_app.root_agent |
| 748 | return agent_or_app |
| 749 | |
| 750 | def _create_runner(self, agentic_app: App) -> Runner: |
| 751 | """Create a runner with common services.""" |
no outgoing calls
no test coverage detected