google.adk.runners.Runner
__init__
appを渡す
または、app_nameとagentを渡す
plugins (Deprecated。pluginはappから渡す)
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
invocation_context.agent = self._find_agent_to_run(session, root_agent)
invocation_context.agent.run_async(invocation_context)
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)
Finds the agent to run to continue the session.