google.adk.runners.Runner
https://github.com/google/adk-python/blob/v1.16.0/src/google/adk/runners.py#L67
__init__
appを渡す
または、app_nameとagentを渡す
plugins (Deprecated。pluginはappから渡す)
run_async() https://github.com/google/adk-python/blob/v1.25.0/src/google/adk/runners.py#L452
self._get_or_create_session()
self._setup_context_for_resumed_invocation() または self._setup_context_for_new_invocation()
self._exec_with_plugin()
_run_compaction_for_sliding_window()
event compactor
run_async() https://github.com/google/adk-python/blob/v1.16.0/src/google/adk/runners.py#L322
invocation_context.agent = self._find_agent_to_run(session, root_agent)
invocation_context.agent.run_async(invocation_context)
👉 google.adk.agents.BaseAgent
Run compaction after all events are yielded from the agent. (We don't compact in the middle of an invocation, we only compact at the end of an invocation.) (v1.16.0)
google.adk.apps.compaction._run_compaction_for_sliding_window()
_find_agent_to_run() https://github.com/google/adk-python/blob/v1.16.0/src/google/adk/runners.py#L704
Finds the agent to run to continue the session.
run_debug() https://github.com/google/adk-python/blob/v1.31.1/src/google/adk/runners.py#L1213