google.adk.agents.InvocationContext
https://github.com/google/adk-python/blob/v1.16.0/src/google/adk/agents/invocation_context.py#L97
An invocation context represents the data of a single invocation of an agent.
1. Starts with a user message and ends with a final response.
2. Can contain one or multiple agent calls.
3. Is handled by runner.run_async()
code:txt
┌─────────────────────── invocation ──────────────────────────┐
┌──────────── llm_agent_call_1 ────────────┐ ┌─ agent_call_2 ─┐
┌──── step_1 ────────┐ ┌───── step_2 ──────┐
call_llm call_tool call_llm transfer
InvocationContextはsession (read only)を持つ
The current session of this invocation context.
初期化例:https://github.com/google/adk-python/blob/v1.16.0/tests/unittests/testing_utils.py#L86-L100