Package-level declarations

Types

Link copied to clipboard
class DebugLoggingPlugin(outputPath: String = "adk_debug.yaml", includeSessionState: Boolean = true, includeSystemInstruction: Boolean = true, val name: String = "debug_logging_plugin") : Plugin

A plugin that captures complete debug information to a file.

Link copied to clipboard

Prepends an app-wide instruction (such as a common identity or set of rules) to the system instruction of every model request so all agents in the app share it. Mirrors Python ADK's GlobalInstructionPlugin.

Link copied to clipboard
class LoggingPlugin(val name: String = "logging_plugin") : Plugin

A plugin that logs a high volume of requests and responses handled by the agent at each callback point.

Link copied to clipboard
interface Plugin : AutoCloseable

Interface for creating plugins.

Link copied to clipboard
class PluginManager(val plugins: List<Plugin> = emptyList(), val skipClosingPlugins: Boolean = false) : AutoCloseable

Manages the pre-aggregation of typed functional callbacks.

Link copied to clipboard
class ReflectAndRetryToolPlugin(val maxRetries: Int = 3, val throwExceptionIfRetryExceeded: Boolean = true, val trackingScope: ReflectAndRetryToolPlugin.TrackingScope = TrackingScope.INVOCATION, val resultErrorExtractor: ReflectAndRetryToolPlugin.ResultErrorExtractor? = null, val retryPredicate: ReflectAndRetryToolPlugin.RetryPredicate? = null, val name: String = DEFAULT_NAME) : Plugin

Answers a failed tool call with guidance for the model to reflect on the error and retry, allowing up to maxRetries consecutive failures per tool.

Link copied to clipboard
class SaveFilesAsArtifactsPlugin @JvmOverloads constructor(attachFileReference: Boolean = true, val name: String = "save_files_as_artifacts_plugin") : Plugin

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.