Package-level declarations

Types

Link copied to clipboard
class AgentTool(val agent: BaseAgent, val skipSummarization: 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()) : AutoCloseable

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
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
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

Base interface for toolsets.

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 model: String? = null) : BaseTool

A built-in tool using Vertex AI Search.