Skip to main content
AionInvocationContext extends Google ADK’s InvocationContext with aion_runtime_context: the inbound A2A state for the current invocation — inbox, typed event, and distribution payload — without requiring direct access to server internals.

Import

Typing the Context

ADK passes the invocation context to _run_async_impl as the base InvocationContext. Type it as AionInvocationContext to get IDE support for the Aion-specific field:

Aion Fields

aion_runtime_context is the entry point for the inbox, typed event, and distribution payload. See AionRuntimeContext for the full field reference.

ADK Base Fields

AionInvocationContext inherits all standard ADK InvocationContext fields. The ones most relevant when writing Aion agents: