The configuration options for the Context.
OptionaleventActions?: EventActionsThe event actions of the current call.
OptionalfunctionCallId?: stringThe function call id of the current tool call. This id was returned in the function call event from LLM to identify a function call. If LLM didn't return this id, ADK will assign one to it. This id is used to map function call response to the original function call.
The invocation context.
OptionaltoolConfirmation?: ToolConfirmationThe tool confirmation of the current tool call.
ReadonlyeventOptional ReadonlyfunctionReadonlyinvocationOptionaltoolThe current agent name.
The current invocation id.
The ID of the current session.
The delta-aware state of the current session.
The user content that started this invocation.
The user ID of the current session.
Gets the auth credential for the given auth config.
The auth config to get the auth credential for.
The auth credential for the given auth config.
Lists the filenames of the artifacts attached to the current session.
A promise that resolves to a list of artifact filenames.
Loads an artifact attached to the current session.
The filename of the artifact.
Optionalversion: numberThe version of the artifact. If not provided, the latest version will be used.
A promise that resolves to the loaded artifact.
Requests confirmation for the current tool call.
Saves an artifact attached to the current session.
The filename of the artifact.
The artifact to save.
A promise that resolves to the version of the saved artifact.
Searches the memory of the current user.
The query to search memory for.
A promise that resolves to SearchMemoryResponse containing the matching memories.
The context of various callbacks within an agent run.
This class provides the context for callbacks and tool invocations, including access to the invocation context, function call ID, event actions, and authentication response. It also provides methods for requesting credentials, retrieving authentication responses, loading and saving artifacts, and searching memory.