Context available to before/after agent callbacks.
Wraps an InvocationContext and provides an actions field
for callbacks to record side effects (state changes, transfers, etc.).
Summary
Functions
Returns the agent name from the underlying invocation context.
Returns the app name.
Gets a value from session state, checking the actions state_delta first.
Returns the invocation ID.
Creates a new callback context from an invocation context.
Searches memory for entries matching the query.
Returns the session ID.
Sets a value in the actions state_delta.
Returns the user ID.
Types
@type t() :: %ADK.Agent.CallbackContext{ actions: ADK.Event.Actions.t(), invocation_context: ADK.Agent.InvocationContext.t() }
Functions
Returns the agent name from the underlying invocation context.
Returns the app name.
Gets a value from session state, checking the actions state_delta first.
Returns the invocation ID.
@spec new(ADK.Agent.InvocationContext.t()) :: t()
Creates a new callback context from an invocation context.
@spec search_memory(t(), String.t()) :: {:ok, [ADK.Memory.Entry.t()]}
Searches memory for entries matching the query.
Returns {:ok, [Entry.t()]} or {:ok, []} if no memory service is configured.
Returns the session ID.
Sets a value in the actions state_delta.
Returns the user ID.