Package-level declarations

Types

Link copied to clipboard
open class AgentTool(val agent: BaseAgent, val skipSummarization: Boolean = false, val includePlugins: Boolean = true, val propagateGroundingMetadata: Boolean = false) : BaseTool

A tool that wraps a BaseAgent.

Link copied to clipboard
abstract class BaseTool(val name: String, val description: String, val isLongRunning: Boolean = false, val customMetadata: Map<String, Any> = emptyMap())

Abstract base class for defining and executing tools.

Link copied to clipboard

A tool that allows an agent to exit a loop.

Link copied to clipboard
abstract class FunctionTool(val name: String, val description: String, val isLongRunning: Boolean = false, val customMetadata: Map<String, Any> = emptyMap(), requiresConfirmation: (Map<String, Any>) -> Boolean = { false }) : BaseTool

Represents a compile-time generated tool that wraps a function annotated with com.google.adk.kt.annotations.Tool.

Link copied to clipboard

Built-in long-running tool that presents a list of options and pauses the invocation until the user picks one.

Link copied to clipboard
class GoogleMapsTool(val model: String? = null) : BaseTool

A built-in tool that is automatically invoked by Gemini 2 models to retrieve search results from Google Maps.

Link copied to clipboard
class GoogleSearchTool(val bypassMultiToolsLimit: Boolean = false, val model: String? = null) : BaseTool

A built-in tool that is automatically invoked by Gemini 2 and 3 models to retrieve search results from Google Search.

Link copied to clipboard

A tool that loads artifacts and adds them to the session.

Link copied to clipboard

A tool that loads the memory for the current user.

Link copied to clipboard

A tool that preloads the memory for the current user.

Link copied to clipboard

The format to use when rendering prompt descriptions of tools.

Link copied to clipboard

A readonly view of the tool context.

Link copied to clipboard

Built-in long-running tool that asks the user a question and pauses the invocation until they respond.

Link copied to clipboard
annotation class Schema(val name: String = "", val description: String = "", val optional: Boolean = false)

The annotation for binding the 'Schema' input.

Link copied to clipboard

Toolset that manages and provides access to a collection of Skills.

Link copied to clipboard
class ToolContext(val invocationContext: InvocationContext, val actions: EventActions = EventActions(), val functionCallId: String? = null, val toolConfirmation: ToolConfirmation? = null, val eventId: String? = null) : ReadonlyToolContext

ToolContext provides a structured context for executing tools or functions.

Link copied to clipboard
interface Toolset

Base interface for toolsets.

Link copied to clipboard

A built-in tool that is automatically invoked by Gemini models to retrieve content from the given URLs and use that content to inform and shape its response.

Link copied to clipboard
class VertexAiSearchTool(val dataStoreId: String? = null, val dataStoreSpecs: List<VertexAISearchDataStoreSpec>? = null, val searchEngineId: String? = null, val filter: String? = null, val maxResults: Int? = null, val bypassMultiToolsLimit: Boolean = false, val model: String? = null) : BaseTool

A built-in tool using Vertex AI Search.