CallbackContext
The context provided to agents and tools during a callback, such as when a tool is run.
It provides access to the current invocation context, event actions, and state.
Properties
Functions
Triggers memory generation for the current session.
Requests the current LLM agent to stop after the current step completes.
Lists the artifact names visible to this invocation. Returns an empty list if no artifact service is configured.
Loads an artifact by name from the invocation's com.google.adk.kt.artifacts.ArtifactService. Returns null if no artifact service is configured or the artifact is not found.
Merges the given event actions into the current event actions.
Saves artifact under name on the invocation's com.google.adk.kt.artifacts.ArtifactService, records the new version into eventActions' artifactDelta, and returns the version.
Updates the state delta in the event actions.