SaveFilesAsArtifactsPlugin
Saves files attached to user messages as artifacts, replacing each with a placeholder that names the artifact so agents can load it later, such as with LoadArtifactsTool. Each file is saved under its display name, where a user: prefix shares it across the user's sessions, or under a generated name if it has no display name; files over 20 MB are replaced with an error note instead. Mirrors Python ADK's SaveFilesAsArtifactsPlugin.
Parameters
Whether to also attach a FileData reference to each saved file when the artifact service stores it at a URI the model can read (gs, https or http).
Constructors
Properties
Functions
Callback executed after a specific agent finishes its processing.
Callback executed after an LLM response is received.
Callback executed after the ADK runner completes its execution.
Reports the versions saved from the user message on the event of the first agent to run, since a plugin cannot add actions to the user's own event.
Callback executed before an LLM request is sent.
Callback executed before the ADK runner starts the main execution loop.
Callback executed before a tool is invoked.
Callback executed when an event is yielded by an agent during execution.
Callback executed when an error occurs during an LLM interaction.
Callback executed when an unhandled error escapes the ADK runner run.
Callback executed when an error occurs during a tool invocation.
Callback executed when a user message is received before an invocation starts.