tools library
Agent tools, toolsets, MCP tools, skills, and code executors.
Provides BaseTool, FunctionTool, BaseToolset, McpToolset, SkillToolset, and AgentTool for extending agent capabilities.
import 'package:adk_dart/tools.dart';
final weatherTool = FunctionTool(
name: 'get_weather',
description: 'Fetches the current weather for a city.',
func: ({required String city}) => {'city': city, 'temp_c': 22},
);
Classes
- AdkAgentMcpServer
- Serves an ADK agent over MCP protocol by handling tool calls.
- AdvisorResult
- Successful response payload returned by ModelConsultTool.
- AdvisorUsage
- Token usage reported by the advisor model.
- AgentEngineSandboxClient
- Client interface for Agent Engine sandbox APIs.
- AgentEngineSandboxCodeExecutor
- Code executor backed by Agent Engine sandbox APIs.
- AgentEngineSandboxExecutionResponse
- Response payload returned by sandbox execution.
- AgentEngineSandboxLifecycleClient
- Optional lifecycle extension for AgentEngineSandboxClient supporting auto-creating Agent Engines and querying sandbox state.
- AgentEngineSandboxOutput
- One output payload emitted by agent engine sandbox execution.
- AgentProvided
- Indicates that a CloudEvent attribute should be provided by the LLM agent.
- AgentSimulatorConfig
- Top-level configuration for the agent simulator subsystem.
- AgentSimulatorEngine
- Applies injection rules and mock strategies for tool simulation.
- AgentSimulatorFactory
- Factory utilities that wire simulator callbacks and plugins.
- AgentSimulatorPlugin
- Plugin that replaces tool calls with simulated outputs.
- AgentTool
- Tool adapter that executes another agent as a tool call.
- AgentToolConfig
- Configuration model for AgentTool.
- APIHubClient
- API Hub client used by API Hub tooling.
- ApiHubHttpResponse
- HTTP response model returned by API Hub request executors.
- APIHubResourceNames
- Parsed API Hub resource name components.
- APIHubToolset
- Toolset that loads API Hub APIs and exposes them as tools.
- ApiParameter
- A normalized parameter model used by OpenAPI tool generation.
- ApiRegistry
- Registry that resolves MCP-backed toolsets for ADK tools.
- ApiRegistryHttpResponse
- HTTP GET response payload used by ApiRegistry.
- ApplicationIntegrationHttpResponse
- HTTP response wrapper for Application Integration requests.
- ApplicationIntegrationToolset
- Toolset that discovers Application Integration connectors.
- ArgMatchResult
- Result of matching a single argument value.
- AuthenticatedFunctionTool
- Authenticated tool wrapper around a function tool delegate.
- AuthParameterBinding
- Result of mapping credentials into a request parameter and argument map.
- AuthPreparationResult
- Result of auth preparation for one tool invocation.
- AutoAuthCredentialExchanger
- Credential exchanger that delegates by AuthCredentialType.
- BaseAPIHubClient
- Base interface for API Hub clients.
- BaseArgMatcher
- Abstract base class for single-argument matchers.
- BaseAuthCredentialExchanger
- Base interface for converting credentials into request-ready forms.
- BaseAuthenticatedTool
- Base tool that resolves credentials before executing protected calls.
- BaseCodeExecutor
- Base class for all code executors.
- BaseComputer
- Interface implemented by platform-specific computer control backends.
- BaseEnvironment
- Contract for environments that expose shell execution and file I/O.
- BaseGoogleCredentialsConfig
- Shared configuration for acquiring Google access credentials.
- BaseMockStrategy
- Base interface for mock strategies used by the simulator engine.
- BaseRetrievalTool
- Base tool contract for retrieval-style tools that accept a text query.
- BaseRetriever
- Retrieval backend interface used by LlamaIndexRetrieval.
- BaseTool
- Base contract for one callable tool exposed to the model runtime.
- BaseToolConfig
- Base config container for tool implementations.
- BaseToolset
- Base contract for grouped tool providers.
- BashToolPolicy
- Policy controlling which bash commands may be executed.
- BigQueryClient
- BigQuery client interface.
- BigQueryConnectionProperty
- Query connection property key-value pair.
- BigQueryCredentialsConfig
- Credential configuration for BigQuery tools.
- BigQueryDatasetListItem
- Dataset list item abstraction.
- BigQueryDatasetReference
- BigQuery dataset identifier with project scope.
- BigQueryJobInfo
- BigQuery job metadata abstraction.
- BigQueryQueryJob
- BigQuery query job abstraction.
- BigQueryQueryJobConfig
- Configuration options for BigQuery query jobs.
- BigQueryResourceInfo
- BigQuery resource metadata abstraction.
- BigQuerySessionInfo
- Session information returned by query jobs.
- BigQueryTableListItem
- Table list item abstraction.
- BigQueryTableReference
- BigQuery table identifier with dataset scope.
- BigQueryToolConfig
- Runtime configuration for BigQuery-backed tools.
- BigQueryToolset
- Toolset that exposes BigQuery query, metadata, and insights tools.
- BigtableAdminClient
- Admin client interface for Bigtable.
- BigtableAdminInstance
- Admin instance interface for Bigtable.
- BigtableClusterAdmin
- Admin cluster interface for Bigtable.
- BigtableCredentialsConfig
- Credential configuration for Bigtable tools.
- BigtableDataClient
- Data client interface for Bigtable query operations.
- BigtableInstanceListResult
- Result payload for listing Bigtable instances.
- BigtableInstanceSummary
- Summary of a Bigtable instance.
- BigtableParameterizedViewTool
- Tool that executes SQL queries against parameterized Bigtable logical views.
- BigtableQueryIterator
- Iterator over Bigtable query rows.
- BigtableQueryRow
- One Bigtable query row.
- BigtableTableAdmin
- Admin table interface for Bigtable.
- BigtableToolset
- Toolset that exposes Bigtable operations as ADK tools.
- BigtableToolSettings
- Configuration values for Bigtable tool behavior.
- BuiltInCodeExecutor
- A code executor that uses the model's built-in code execution capability.
- CalendarToolset
- Google Calendar API toolset wrapper.
- CasefoldArgMatcher
- Case-insensitive string equality matcher (trims surrounding whitespace).
- CloudEventAttributesBinding
- Configuration binding CloudEvent attributes to static values, callbacks, or AgentProvided fields.
- CloudRunSandboxCodeExecutor
-
Executes Python code inside a Cloud Run sandbox using the
sandboxCLI tool. - CodeExecutionFile
- File payload used in code execution input/output.
- CodeExecutionInput
- Normalized code execution input payload.
- CodeExecutionRequest
- Normalized command execution request.
- CodeExecutionResult
- Normalized code execution result payload.
- CodeExecutionUtils
- Helpers for extracting and converting code-execution content parts.
- CodeExecutorContext
- Wrapper for reading/writing code-executor state in session maps.
- ComputerState
- Snapshot of computer state returned by computer-use operations.
- ComputerUseTool
- Function tool wrapper for computer-use actions with screen metadata.
- ComputerUseToolAdapter
- Adapter output used to replace generated computer-use tools.
- ComputerUseToolset
- Toolset that surfaces BaseComputer actions as ADK tools.
- ConnectionsClient
- Client for Google Application Integration connector metadata APIs.
- ConsultModelTool
-
Alias class for ModelConsultTool providing the
ConsultModelToolname. - ConsultModelToolset
-
Alias class for ModelConsultToolset providing the
ConsultModelToolsetname. - ContainerCodeExecutor
- Container-backed code executor that runs snippets in Docker.
- ContainerRuntimeClient
- Runtime abstraction for container lifecycle and exec operations.
- ContainsArgMatcher
- Substring or collection element containment matcher.
- CrewaiTool
- Adapter that exposes CrewAI tools through ADK FunctionTool.
- CrewaiToolConfig
- Configuration model for CrewaiTool.
- DataAgentCredentialsConfig
- Credential configuration for Data Agent tools.
- DataAgentToolConfig
- Configuration values for Data Agent tool behavior.
- DataAgentToolset
- Toolset that exposes Data Agent capabilities as tools.
- DataplexCatalogClient
- Dataplex catalog client interface.
- DataplexSearchEntryResult
- One Dataplex catalog search result projected into ADK fields.
- DaytonaEnvironment
- A persistent remote workspace sandbox backed by Daytona.
- DiscoveryEngineSearchHttpRequest
- HTTP request model for Discovery Engine API invocations.
- DiscoveryEngineSearchHttpResponse
- HTTP response model for Discovery Engine API invocations.
- DiscoveryEngineSearchRequest
- Request payload for Discovery Engine search.
- DiscoveryEngineSearchResult
- Search result item returned by Discovery Engine.
- DiscoveryEngineSearchTool
- Tool that queries Google Discovery Engine search.
- DockerExecResult
- Result of executing a command inside a container runtime.
- DocsToolset
- Google Docs API toolset wrapper.
- DomainSpecificPublishTool
-
Domain-specific GoogleTool wrapper around Eventarc
publish_message. - EditFileTool
- Tool that performs an exact text replacement in an environment file.
- EnterpriseWebSearchTool
- Tool wrapper for enterprise web search grounding.
- EnvironmentExecutionResult
- Result of one command execution inside an environment.
- EnvironmentSimulationFactory
- Factory helpers that delegate to the legacy simulator implementation.
- EnvironmentToolset
- Experimental toolset for command execution and file I/O.
- EventarcCredentialsConfig
- Credentials configuration for Eventarc.
- EventarcToolConfig
- Configuration options for the Eventarc publish tool.
- EventarcToolset
- Toolset for publishing structured CloudEvents to Eventarc Advanced buses.
- ExactArgMatcher
- Exact equality argument matcher.
- ExampleTool
- Tool that injects few-shot examples into model instructions.
- ExampleToolConfig
- Configuration model for ExampleTool.
- ExecuteBashTool
- Tool that executes bash commands after explicit user confirmation.
- ExecuteTool
- Tool that runs shell commands in an environment.
- FilesRetrieval
- Retrieval tool that indexes local files under a directory.
- ForceEscalationPlugin
- Enforces deterministic model escalation triggers for ModelConsultTool.
- ForwardingArtifactService
- Artifact service that forwards operations to a tool context.
- Frontmatter
- L1 skill metadata parsed from SKILL.md frontmatter.
- FunctionTool
- Wraps a Dart callable as a runtime tool.
- GetUserChoiceTool
- Long-running function tool that prompts user to select from a list of options.
- GkeApiClient
- API abstraction for interacting with Kubernetes resources.
- GkeCodeExecutor
- Code executor that submits jobs to GKE or falls back locally.
- GkeJobWatchResult
- Result payload returned by GkeApiClient.watchJob.
- GmailToolset
- Google Gmail API toolset wrapper.
- GoogleApiOperation
- Immutable description of one Google API operation.
- GoogleApiTool
- Tool wrapper for invoking Google APIs from discovery/OpenAPI metadata.
- GoogleApiToolset
- Toolset that converts Google Discovery APIs into executable tools.
- GoogleApiToOpenApiConverter
- Converts Google Discovery specs into OpenAPI 3.0 documents.
- GoogleCredentialsManager
- Resolves valid Google credentials for tool execution.
- GoogleMapsGroundingTool
- Tool wrapper for Google Maps grounding.
- GoogleOAuthCredential
- OAuth credential payload used by Google-backed tools.
- GoogleSearchAgentTool
- Agent tool preconfigured with Google Search capabilities.
- GoogleSearchTool
- Tool wrapper for Google Search grounding.
- GoogleTool
- Function tool that resolves Google credentials before invocation.
- HttpGkeApiClient
- Pure-Dart Kubernetes Batch/v1 REST client implementing GkeApiClient.
- HttpPubSubPublisherClient
- HTTP implementation of PubSubPublisherClient.
- HttpPubSubSubscriberClient
- HTTP implementation of PubSubSubscriberClient.
- IgnoreArgMatcher
- Wildcard matcher that ignores the argument value and always succeeds.
- InjectedError
- Error payload returned when an injected failure is triggered.
- InjectionConfig
- Rule that probabilistically injects latency, errors, or mock responses.
- InMemorySkillBuilder
- Builder for one in-memory skill.
- InMemorySkillData
- Complete in-memory payload for one skill source entry.
- InMemorySkillSource
- In-memory SkillSource implementation.
- InMemorySkillSourceBuilder
- Builder for InMemorySkillSource.
- IntegrationClient
- Client for listing and resolving Application Integration resources.
- IntegrationConnectorTool
- Tool that invokes an Application Integration connector operation.
- InvocationPlan
- One invocation strategy used to call flexible user functions.
- LangchainTool
- Adapter that exposes LangChain tools through ADK FunctionTool.
- LangchainToolConfig
- Configuration model for LangchainTool.
- ListSkillsTool
- Tool to list all locally available skills.
- LiveSkillGcsStore
- Web stub for live GCS-backed skill storage.
- LlamaIndexRetrieval
- Retrieval tool adapter backed by a synchronous BaseRetriever.
- LoadArtifactsTool
- Tool that loads saved artifacts into the current turn.
- LoadMcpResourceTool
- Tool that injects MCP resource contents into pending LLM requests.
- LoadMemoryResponse
- Structured response returned by LoadMemoryTool.
- LoadMemoryTool
- Tool that queries memory entries for the current user.
- LoadSkillResourceTool
- Tool to load a resource from a skill bundle.
- LoadSkillTool
- Tool to load a skill's main instructions.
- LocalEnvironment
- Local environment that executes commands and accesses files on disk.
- LocalSkillSource
- Filesystem-backed SkillSource, unsupported on Web.
- LongRunningFunctionTool
- Function tool marked as long-running for runtime scheduling.
- McpBaseTool
- Lightweight MCP tool descriptor used by McpTool.
- McpContentBlock
- Structured MCP Content Block produced from ADK content parts.
- McpResourceContent
-
Content returned by
resources/read. - McpServerMessage
- A server-originated MCP message delivered by this client.
- McpSessionManager
- Central registry and transport manager for MCP sessions.
- McpTool
- Auth-aware MCP tool wrapper that delegates calls through McpSessionManager.
- McpToolset
- Toolset that exposes tools and resources from one MCP connection.
- McpToolsetConfig
- Declarative configuration model for constructing an McpToolset.
- MissingSentinel
- Sentinel class indicating that a CloudEvent binding or default was not set.
- ModelConsultContextConfig
- Controls how conversation history is formatted for the advisor model.
- ModelConsultObservabilityPlugin
- Plugin that records primary model usage, ConsultModelTool escalations, and estimated token costs across invocations.
- ModelConsultReport
- Immutable snapshot of model consultation observability metrics and costs.
- ModelConsultStats
- Token usage and cost statistics for a single model.
- ModelConsultTool
- Tool that allows an agent to consult a secondary advisor LLM for guidance.
- ModelConsultToolset
- Toolset that exposes a ModelConsultTool and injects usage instructions.
- ModelConsultUsage
- Aggregated token and call usage for a single model.
- NodeTool
- A tool wrapper that executes a BaseNode (e.g. a workflow function node or tool node) as a standard ADK BaseTool.
- NumericArgMatcher
- Numeric matcher with configurable tolerance.
- OAuth2CredentialExchanger
- Exchanges OAuth2/OpenID credentials into HTTP bearer credentials.
- OmitSentinel
- Sentinel class indicating that an optional CloudEvent attribute should be omitted.
- OpenApiSpecParser
- Parser that converts OpenAPI documents into ParsedOperation entries.
- OpenAPIToolset
- A toolset that builds RestApiTool instances from an OpenAPI spec.
- OpenIdConfig
- OpenID Connect client configuration.
- OperationEndpoint
- Endpoint metadata resolved from an OpenAPI path/method entry.
- OperationParser
- Extracts function metadata, parameters, and schemas from one operation.
- OperationSignatureParameter
- Generated signature metadata for one parsed operation parameter.
- ParsedOperation
- Fully parsed OpenAPI operation model used to build ADK tools.
- PreloadMemoryTool
- Internal tool that preloads relevant memories into prompt context.
- ProcessContainerRuntimeClient
- Docker CLI-backed container runtime client.
- PubSubCredentialsConfig
- Google credential config specialized for Pub/Sub tool usage.
- PubSubPublisherClient
- Publisher client interface for Google Cloud Pub/Sub.
- PubSubSubscriberClient
- Subscriber client interface for Google Cloud Pub/Sub.
- PubSubToolConfig
- Runtime configuration for Pub/Sub-backed tools.
- PubSubToolset
- Toolset exposing publish/pull/ack Pub/Sub operations.
- PulledPubSubMessage
- One message returned by a Pub/Sub pull operation.
- PydocHelper
- Helpers that build Python-style docs from OpenAPI metadata.
- ReadFileTool
- Tool that reads file contents from an environment with line numbers.
- RegisteredMcpServer
- Registered MCP server connection details.
- RemoteMcpServer
- A remote MCP server executed server-side by the Managed Agents API.
- RequestInputTool
- Long-running tool that requests human input before execution continues.
- ResourceLimit
-
Resource limit identifier constants matching Python
resource.RLIMIT_*. - Resources
- L3 skill resources loaded from references/assets/scripts directories.
- RestApiResponse
- Container for normalized REST API responses.
- RestApiTool
- A tool that executes one OpenAPI operation as an HTTP request.
- RestVertexAiRagClient
- Pure-Dart REST implementation of VertexAiRagClient.
- RetrievalResult
- One retrieval hit returned by a retriever implementation.
- RunSkillScriptTool
- Tool to execute scripts from a skill bundle.
- Script
- Wrapper for script content.
- SearchSkillsTool
- Tool to search a configured skill registry for relevant skills.
- SearchToolsTool
- Tool that searches deferred tools in a ToolSearchToolset and reveals matches.
- SecretManagerClient
- Small client for resolving Secret Manager secret values.
- SemanticArgMatcher
- Matches argument values that an LLM judges to have the same meaning.
- ServiceAccountCredentialExchanger
- Exchanges service-account credentials into HTTP bearer credentials.
-
SessionContext<
T> - Lifecycle helper that lazily starts and closes session resources.
- SetModelResponseTool
- Tool used when output schema must coexist with other tools.
- SheetsToolset
- Google Sheets API toolset wrapper.
- SingleTurnAgentTool
-
Tool adapter for a sub-agent configured with
mode: 'single_turn'. - Skill
- Complete skill representation with metadata, instructions, and resources.
- SkillDescriptor
- Minimal shape shared by all skill descriptors.
- SkillGcsStore
- Web stub for GCS-backed skill storage.
- SkillLifecycleConfig
- Configuration for skill lifecycle management in SkillToolset.
- SkillRegistry
- In-memory registry for named Skill objects.
- SkillSource
- Asynchronous source interface for skill metadata, instructions, resources.
- SkillToolset
- Toolset exposing skill-discovery, loading, and script-execution tools.
- SlidesToolset
- Google Slides API toolset wrapper.
- SpannerAdminClient
- REST-style client for Spanner admin APIs.
- SpannerAdminToolset
- Experimental toolset for Spanner admin operations.
- SpannerBatch
- Batch interface for mutation writes.
- SpannerClient
- Client interface for Cloud Spanner operations.
- SpannerContentBatch
- One prepared batch of contents and additional column values.
- SpannerCredentialsConfig
- Credential configuration used by Spanner Google tools.
- SpannerDatabase
- Database interface for Cloud Spanner.
- SpannerInstance
- Instance interface for Cloud Spanner.
- SpannerResultSet
- Result set interface for Spanner queries.
- SpannerSnapshot
- Snapshot interface for executing SQL reads.
- SpannerTable
- Table descriptor returned from schema queries.
- SpannerToolset
- A BaseToolset that exposes Spanner metadata, query, and search tools.
- SpannerToolSettings
- Configuration for the Spanner tool runtime.
- SpannerUpdateDdlOperation
- Handle for long-running DDL operations.
- SpannerVectorStore
- Vector store helper for Spanner-backed embedding retrieval.
- SpannerVectorStoreSettings
- Configuration for Spanner-backed vector store retrieval.
- StatefulParameter
- One stateful parameter and the tools that create or consume it.
- StdioConnectionParams
- Process launch options for an MCP stdio server.
- StreamableHTTPConnectionParams
- Connection options for an MCP server that supports Streamable HTTP.
- TableColumn
- A table column definition used when provisioning Spanner vector tables.
- TaskAgentTool
-
Tool adapter for a sub-agent configured with
mode: 'task'. - ToolArgsConfig
- Typed wrapper for tool argument configuration.
- ToolArgsMatcher
- Matches a dictionary of tool call arguments against configured matchers.
- ToolArgsMatchResult
- Result of matching a full map of tool call arguments.
- ToolAuthHandler
- Coordinates credential lookup, exchange, refresh, and auth prompting.
- ToolboxToolset
- Toolset that exposes tools from a Toolbox server endpoint.
- ToolboxToolsetDelegate
- Delegate contract for toolbox SDK integrations.
- ToolConfig
- Serialized tool declaration with optional argument config.
- ToolConfirmation
- Captures confirmation state for tools that require user approval.
- ToolConnectionAnalyzer
- Infers stateful parameter relationships between tool schemas.
- ToolConnectionMap
- Tool-state dependency map discovered by the analyzer.
- ToolContextCredentialStore
- Credential cache backed by ToolContext.state.
- ToolSearchConfig
- Configuration options for ToolSearchToolset.
- ToolSearchToolset
-
Toolset that defers loading a large catalog of tools until discovered via
search_tools. - ToolSimulationConfig
- Simulation settings for one tool.
- ToolSpecMockStrategy
- Mock strategy that synthesizes tool outputs from tool specs.
- TracingMockStrategy
- Fallback strategy that reports tracing-mode unavailability.
- TransferToAgentTool
- Function tool that lets agents transfer execution to peer agents.
- TypeHintHelper
- Type inference helpers for OpenAPI schema fragments.
- UnloadSkillTool
- Tool to unload an active skill, releasing its additional tools.
- UnsafeLocalCodeExecutor
- Executes code locally via shell, Python, Dart, or Node processes.
- UrlContextTool
- Built-in URL context retrieval tool for supported Gemini models.
- VectorSearchIndexSettings
- Index tuning values for Spanner vector search indexes.
- VertexAiCodeExecutor
- Code executor that uses Vertex code interpreter.
- VertexAiLoadProfilesTool
- A tool that loads a user's structured profiles from Vertex Memory Bank.
- VertexAiRagResource
- Vertex AI RAG resource reference.
- VertexAiRagRetrieval
- Retrieval tool that integrates with Vertex AI RAG.
- VertexAiRagStore
- Store-level RAG query configuration used by VertexAiRagRetrieval.
- VertexAiSearchConfig
- Retrieval configuration used by VertexAiSearchTool.
- VertexAiSearchDataStoreSpec
- One Vertex AI Search data store reference.
- VertexAiSearchTool
- Built-in retrieval tool wrapper for Vertex AI Search.
- VertexCodeInterpreterClient
- Client interface for Vertex code interpreter execution.
- VertexRagRetrievalTool
- Server-side Vertex AI RAG retrieval tool.
- WriteFileTool
- Tool that creates or overwrites a file in an environment.
- YoutubeToolset
- YouTube Data API toolset wrapper.
Enums
- Capabilities
- Supported Spanner tool capabilities.
- ComputerEnvironment
- Supported runtime environments for computer-use tools.
- EnvironmentScope
- Which agent runs share one resource of an environment.
- GkeJobStatus
- Outcome statuses returned while watching a GKE job.
- MockStrategy
- Mock strategy used when no injection config matches.
- QueryResultMode
- Output formats for query execution results.
- SearchResultMode
- Search result mode for Discovery Engine content search.
- SkillDiscoveryMode
- Discovery mode for how skills are presented to the model.
- SkillLifecycleMode
- Modes for managing the lifecycle of an active skill.
- SpannerDatabaseDialect
- Supported Spanner database dialects.
- ToolBehavior
- Controls whether the model waits for a tool's response in Live API mode.
- WriteMode
- Write-permission mode for BigQuery mutating operations.
Extensions
- LiveFunctionDeclarationBehavior on FunctionDeclaration
- Live function-declaration behavior compatibility extension on FunctionDeclaration.
Constants
- approximateNearestNeighbors → const String
- The approximate nearest-neighbor search algorithm name used by Spanner.
- argMatcherUnset → const Object
-
Sentinel used to distinguish an omitted
expectedargument fromnull. -
availableBigQuerySkills
→ const List<
String> - Names of bundled BigQuery skills available via getBigQuerySkill.
-
bigqueryDefaultScope
→ const List<
String> - Default OAuth scopes required for BigQuery operations.
- bigqueryTokenCacheKey → const String
- Token-cache key used by BigQuery credential refresh flows.
- bigQueryUserAgent → const String
- Default ADK user-agent string for BigQuery requests.
-
bigtableDefaultScope
→ const List<
String> - Default OAuth scopes used by Bigtable tools.
- bigtableTokenCacheKey → const String
- Cache key for Bigtable OAuth tokens.
- bigtableUserAgent → const String
- Default ADK user-agent string for Bigtable requests.
- consultRequiredStatus → const String
- Status string returned when a gated tool call is refused.
- dataAgentBaseUrl → const String
- Base REST endpoint for Data Agent API calls.
- dataAgentClientId → const String
- Client identifier value sent in Data Agent request headers.
-
dataAgentDefaultScope
→ const List<
String> - Default OAuth scopes used by Data Agent tools.
- dataAgentTokenCacheKey → const String
- Cache key for Data Agent OAuth tokens.
- dataplexUserAgent → const String
- Default ADK user-agent string for Dataplex catalog requests.
- DEFAULT_SKILL_SYSTEM_INSTRUCTION → const String
- Backward-compatible alias for defaultSkillSystemInstruction.
- defaultAdvisorInputCostPerMillion → const double
- Default estimated input cost in USD per 1M tokens for the advisor model.
- defaultAdvisorOutputCostPerMillion → const double
- Default estimated output cost in USD per 1M tokens for the advisor model.
- defaultAdvisorSystemInstruction → const String
- Default system instruction passed to the advisor model.
-
defaultAgentSimulatorThinkingConfig
→ const Map<
String, Object?> - Default thinking configuration for simulator LLM calls.
- defaultBigtableToolNamePrefix → const String
- Default name prefix assigned to Bigtable tools.
- defaultConsultModelToolName → const String
- Default tool name for ModelConsultTool.
- defaultContainerImageTag → const String
- Default image tag used by ContainerCodeExecutor.
- defaultContainerInputDir → const String
- Default input directory inside the container for staged input files.
- defaultContainerOutputDir → const String
- Default output directory inside the container for execution working directory.
- defaultMaxExecutedQueryResultRows → const int
-
Default maximum rows returned by
executeSqlwhen not configured. - defaultPrimaryInputCostPerMillion → const double
- Default estimated input cost in USD per 1M tokens for the primary model.
- defaultPrimaryOutputCostPerMillion → const double
- Default estimated output cost in USD per 1M tokens for the primary model.
- defaultSemanticMatchModel → const String
- Default Gemini model used by SemanticArgMatcher when none is configured.
- defaultSkillSystemInstruction → const String
- Default system instruction injected when skill tools are enabled.
- defaultSpannerToolNamePrefix → const String
- The default prefix used to namespace Spanner tool names.
- environmentInstruction → const String
- System-instruction rules injected by EnvironmentToolset.
- environmentWorkingDirInstruction → const String
- System-instruction header template prepended to the rules once the environment has a working directory.
- exactNearestNeighbors → const String
- The exact nearest-neighbor search algorithm name used by Spanner.
-
excludedComputerMethods
→ const Set<
String> - Base-computer methods that are intentionally excluded from tool adaptation.
- gdaClientId → const String
- API client identifier sent to the Gemini Data Analytics endpoint.
- getUserChoiceFunctionName → const String
- Default function name exposed by GetUserChoiceTool.
- internalAuthPrefix → const String
- Prefix used for internally injected auth parameter names.
- legacyConsultModelToolName → const String
- Legacy alias for defaultConsultModelToolName.
- listSkillsToolName → const String
- Tool name constant for ListSkillsTool.
- loadSkillResourceToolName → const String
- Tool name constant for LoadSkillResourceTool.
- loadSkillToolName → const String
- Tool name constant for LoadSkillTool.
- maxContainerOutputTotalBytes → const int
- Maximum total byte size (100 MiB) of collected output files.
- maxToolNameLength → const int
- Maximum allowed length for a generated OpenAPI tool function name.
- mcpInvalidRequestErrorCode → const int
- Standard JSON-RPC invalid request error code.
-
mcpReservedToolNames
→ const Set<
String> - Reserved tool names that cannot be overridden by external MCP tools.
- mcpSdkOperationalMajorVersion → const int
-
Operational major version of the MCP SDK supported by ADK (
< 2.0.0). - mcpSessionTerminatedLegacyCode → const int
- Legacy MCP session terminated error code.
- mcpSessionTerminatedMessage → const String
- Message indicating the server discarded or terminated the session.
- mcpUserId → const String
- Default user identifier assigned to MCP-originated agent invocations.
- MISSING → const MissingSentinel
- Sentinel constant indicating that a CloudEvent binding or default was not set.
- modelConsultClientLabel → const String
- Label used to denote advisor LLM calls made by ModelConsultTool.
- OMIT → const OmitSentinel
- Sentinel constant indicating that an optional CloudEvent attribute should be omitted.
-
pubsubDefaultScope
→ const List<
String> - Default OAuth scopes used by Pub/Sub tools.
- pubsubTokenCacheKey → const String
- Cache key for Pub/Sub OAuth tokens.
- pubSubUserAgent → const String
- Default ADK user-agent string for Pub/Sub requests.
- revealedToolsStatePrefix → const String
- State key prefix used to store revealed deferred tool names per agent.
- runSkillScriptToolName → const String
- Tool name constant for RunSkillScriptTool.
- searchSkillsToolName → const String
- Tool name constant for SearchSkillsTool.
- searchToolsToolName → const String
- Canonical tool name for SearchToolsTool.
- spannerAdminUserAgent → const String
- Default ADK user-agent string for Spanner admin requests.
-
spannerDefaultScope
→ const List<
String> - Default OAuth scopes required by Spanner tools.
- spannerTokenCacheKey → const String
- Token cache key used for Spanner credential refresh flow.
- spannerUserAgent → const String
- Default ADK user-agent string for Spanner requests.
-
supportedAdvisorThinkingLevels
→ const Map<
String, String> - Supported SDK thinking level names mapped from lowercase name to wire value.
- toolConnectionAnalysisPromptTemplate → const String
- Prompt template used to infer tool-state dependencies.
- toolSpecMockPromptTemplate → const String
- Prompt template for tool-schema-guided mock response generation.
- unloadSkillToolName → const String
- Tool name constant for UnloadSkillTool.
Properties
- currentModelConsultClientLabel → String?
-
Returns the active model-consult client label in the current Zone, if any.
no setter
- enterprise_web_search → EnterpriseWebSearchTool
-
Backward-compatible alias for enterpriseWebSearchTool.
final
- enterpriseWebSearchTool → EnterpriseWebSearchTool
-
Shared singleton instance of EnterpriseWebSearchTool.
final
- getUserChoice → GetUserChoiceTool
-
Global singleton instance of GetUserChoiceTool.
final
- google_maps_grounding → GoogleMapsGroundingTool
-
Backward-compatible alias for googleMapsGrounding.
final
- google_search → GoogleSearchTool
-
Backward-compatible alias for googleSearch.
final
- googleMapsGrounding → GoogleMapsGroundingTool
-
Shared singleton instance of GoogleMapsGroundingTool.
final
- googleSearch → GoogleSearchTool
-
Shared singleton instance of GoogleSearchTool.
final
- loadMemoryTool → LoadMemoryTool
-
Default global LoadMemoryTool singleton instance.
final
- preloadMemoryTool → PreloadMemoryTool
-
Default global PreloadMemoryTool singleton instance.
final
-
pyTypeToSchemaType
→ Map<
String, String> -
The mapping from Python-style type names to JSON schema types.
final
- requestInput → RequestInputTool
-
Default request-input tool instance.
final
- urlContext → UrlContextTool
-
Shared URL context tool instance.
final
Functions
-
acknowledgeMessages(
{required String subscriptionName, required List< String> ackIds, required Object credentials, required Object settings, ToolContext? toolContext}) → Future<Map< String, Object?> > -
Acknowledges
ackIdsonsubscriptionName. -
activeEnvironmentLockCount(
BaseEnvironment environment) → int -
Returns the number of currently active per-scope lock entries for
environment. -
addUnevaluatedItemsToFixedLenTupleSchema(
Map< String, dynamic> jsonSchema) → Map<String, dynamic> -
The
jsonSchemawith tupleunevaluatedItems: falseparity behavior. -
adkToMcpToolType(
BaseTool tool) → Map< String, Object?> -
The MCP tool descriptor map converted from ADK
tool. -
analyzeContribution(
{required String projectId, required String inputData, required String contributionMetric, required List< Object?> dimensionIdCols, required String isTestCol, required Object credentials, required Object settings, required ToolContext toolContext, int topKInsights = 30, String pruningMethod = 'PRUNE_REDUNDANT_INSIGHTS'}) → Future<Map< String, Object?> > - Builds a temporary contribution-analysis model and returns insights.
-
annotateNullableFields(
Map< String, dynamic> schema) → void -
Marks properties whose
anyOfcontains a'null'branch asnullable. -
annotateRequiredFields(
Map< String, dynamic> schema) → void -
Populates
schema['required']with non-nullable fields without defaults. -
askDataAgent(
{required String dataAgentName, required String query, required Object credentials, Object? settings, required ToolContext toolContext, DataAgentHttpGet? httpGet, DataAgentStreamPost? streamPost}) → Future< Map< String, Object?> > -
Sends
queryto a data agent chat endpoint and returns normalized output. -
askDataInsights(
{required String projectId, required String userQueryWithContext, List< Map< ? tableReferences, Object? credentials, Object? settings, Object? searchScope}) → Future<String, String> >Map< String, Object?> > -
Executes a BigQuery Data Insights request for
userQueryWithContext. -
asSafePartForLlm(
Part artifact, String artifactName, {bool enableSpreadsheetParsing = false}) → Part -
Converts an
artifactinto a safe Part representation for LLM consumption. -
buildDomainSpecificTool(
{Object? toolset, required String name, required String description, required Object? bus, required CloudEventAttributesBinding ceAttributesBinding, Object? payloadSchema, EventarcPublishInvoker? publishInvoker}) → DomainSpecificPublishTool -
Dynamically builds a DomainSpecificPublishTool (GoogleTool) wrapping Eventarc
publish_messagewith static, dynamic callback, or AgentProvided bindings. -
buildFunctionDeclaration(
Object func, {List< String> ? ignoreParams, Map<String, dynamic> ? parametersJsonSchema, Map<String, dynamic> ? responseJsonSchema}) → FunctionDeclaration -
The FunctionDeclaration converted from
funcand optional schema hints. -
buildFunctionDeclarationForLangchain(
bool vertexai, String name, String? description, Object? func, Map< String, dynamic> paramPydanticSchema) → FunctionDeclaration -
Builds a FunctionDeclaration for a LangChain tool from its
propertiesmap. -
buildFunctionDeclarationForParamsForCrewai(
bool vertexai, String name, String? description, Object? func, Map< String, dynamic> paramPydanticSchema) → FunctionDeclaration - Builds a FunctionDeclaration for a CrewAI tool from its full Pydantic JSON schema.
-
buildFunctionDeclarationFromSpec(
Map< String, Object?> spec, {List<String> ? ignoreParams}) → FunctionDeclaration -
The FunctionDeclaration built from a Python-style tool
specmap. -
buildFunctionDeclarationUtil(
bool vertexai, String name, String? description, Object? func, Map< String, dynamic> beforeParamPydanticSchema) → FunctionDeclaration - Shared declaration builder for LangChain and CrewAI Pydantic tool schemas.
-
buildFunctionDeclarationWithJsonSchema(
{required String name, String? description, Map< String, dynamic> ? parametersJsonSchema, Map<String, dynamic> ? responseJsonSchema}) → FunctionDeclaration - The FunctionDeclaration built from explicit JSON schema arguments.
-
buildMcpRunner(
BaseAgent agent) → Runner - Helper to wrap an ADK agent in a pre-configured in-memory Runner.
-
buildModelConsultSystemInstruction(
{required String toolName, String? customGuidance}) → String - Default guidance appended to the host agent's system instruction when ModelConsultToolset is attached.
-
buildSkillSystemInstruction(
{String? prefix, Set< String> ? allowedTools, String? skillsFolder, bool scriptExecutionEnabled = true}) → String - Builds the system instruction for skill tools.
-
buildUlimitPrefix(
BashToolPolicy policy) → String -
Builds the
ulimitshell prefix string forpolicy. -
callAdvisor(
BaseLlm llm, List< Content> contents, {String systemInstruction = defaultAdvisorSystemInstruction, GenerateContentConfig? generateContentConfig, Object? thinkingLevel, Duration? timeout, String agentName = defaultConsultModelToolName, TelemetryConfig? telemetryConfig, Map<String, String> ? environment, AdkMetricsRecorder? recorder}) → Future<AdvisorResult> -
Calls
llmas an advisor model overcontentsand records advisor metrics. -
cleanupClients(
) → Future< void> - Closes and clears all cached Pub/Sub clients.
-
closeIfInitialized(
BaseEnvironment environment, {Future< void> ? cancelSignal}) → Future<void> -
Closes
environmentif currently initialized, waiting for in-flight ensureInitialized calls across all scopes and holding new ones until the close finishes. -
configureSpannerPubSubRuntime(
{SpannerAdminClientFactory? spannerAdminClientFactory, SpannerClientFactory? spannerClientFactory, SpannerEmbedder? spannerEmbedder, SpannerEmbedderAsync? spannerEmbedderAsync, PubSubPublisherFactory? pubSubPublisherFactory, PubSubSubscriberFactory? pubSubSubscriberFactory}) → void - Configures Spanner and Pub/Sub runtime factories in one call.
-
configureToolRuntimeBootstrap(
{BigQueryClientFactory? bigQueryClientFactory, BigtableAdminClientFactory? bigtableAdminClientFactory, BigtableDataClientFactory? bigtableDataClientFactory, SpannerAdminClientFactory? spannerAdminClientFactory, SpannerClientFactory? spannerClientFactory, SpannerEmbedder? spannerEmbedder, SpannerEmbedderAsync? spannerEmbedderAsync, ToolboxToolsetDelegateFactory? toolboxDelegateFactory, AudioRecognizer? defaultAudioRecognizer}) → void - Registers commonly injected runtime adapters in one place.
-
countWords(
String line) → int -
Counts the words in a
lineof page text. -
createDataAgent(
{required String projectId, required String displayName, required Object credentials, String? description, Map< String, Object?> ? dataSource, String? location, Object? settings, ToolContext? toolContext, DataAgentHttpPost? httpPost, DataAgentHttpGet? httpGet}) → Future<Map< String, Object?> > -
Creates a new data agent resource for
projectId. -
createDatabase(
{required String projectId, required String instanceId, required String databaseId, required Object credentials}) → Future< Map< String, Object?> > -
Creates a database in
instanceId. -
createGoogleSearchAgent(
Object model) → LlmAgent - The LlmAgent configured to use googleSearch for retrieval tasks.
-
createInstance(
{required String projectId, required String instanceId, required String configId, required String displayName, required Object credentials, int nodes = 1}) → Future< Map< String, Object?> > - Creates a Spanner instance and waits for completion.
-
credentialToParam(
Object authScheme, AuthCredential? authCredential) → AuthParameterBinding - Converts a scheme and credential into API parameter injection values.
-
deepArgEquals(
Object? a, Object? b) → bool - Deep equality check for tool argument values (maps, lists, numbers, primitives).
-
defaultApplicationIntegrationAccessTokenProvider(
{String? serviceAccountJson}) → Future< String?> - Default access-token provider used by ConnectionsClient.
-
defaultApplicationIntegrationRequestExecutor(
{required Uri uri, required String method, required Map< String, String> headers, String? body}) → Future<ApplicationIntegrationHttpResponse> - Default HTTP executor used by ConnectionsClient.
-
deleteDataAgent(
{required String dataAgentName, required Object credentials, Object? settings, ToolContext? toolContext, DataAgentHttpDelete? httpDelete, DataAgentHttpGet? httpGet}) → Future< Map< String, Object?> > - Deletes an existing data agent resource.
-
dereferenceSchema(
Map< String, dynamic> schema) → Map<String, dynamic> -
Resolves local
$refentries using JSON Pointers and schema-level$defs/definitions. -
detectAnomalies(
{required String projectId, required String historyData, required String timesSeriesTimestampCol, required String timesSeriesDataCol, int horizon = 1000, String? targetData, List< Object?> ? timesSeriesIdCols, double anomalyProbThreshold = 0.95, required Object credentials, required Object settings, required ToolContext toolContext}) → Future<Map< String, Object?> > - Builds a temporary ARIMA model and returns anomaly detection results.
-
dictToAuthScheme(
Map< String, Object?> data) → Object - Converts a JSON-like dictionary to a typed auth scheme object.
-
disambiguateToolNames(
List< BaseTool> tools) → void -
Disambiguates duplicate tool names in
toolsin place so every tool has a unique name within maxToolNameLength characters and no generated suffix collides with a later tool's original name. -
embedContents(
{required String vertexAiEmbeddingModelName, required List< String> contents, int? outputDimensionality, Object? genAiClient}) → List<List< double> > -
Embeds
contentsusing the configured synchronous embedder. -
embedContentsAsync(
{required String vertexAiEmbeddingModelName, required List< String> contents, int? outputDimensionality, Object? genAiClient}) → Future<List< List< >double> > -
Embeds
contentsusing the configured asynchronous embedder. -
encodeSchemaJson(
Map< String, dynamic> schema) → String -
Encodes
schemato a JSON string. -
encodeWriteFileContent(
Object content) → Uint8List -
Normalizes
content(StringorList<int>) into raw bytes for BaseEnvironment.writeFile. -
ensureInitialized(
BaseEnvironment environment, [Context? ctx, Future< void> ? cancelSignal]) → Future<void> -
Initializes
environmentunder a per-scope lock with callingctx. -
executeSql(
{required String projectId, required String instanceId, required String databaseId, required String query, required Object credentials, required Object settings, ToolContext? toolContext}) → Future< Map< String, Object?> > -
Executes a SQL query against Spanner using normalized tool
settings. -
exitLoop(
{required ToolContext toolContext}) → Object? - Marks the current loop for escalation and stops summarization.
-
extractMcpToolTitle(
Object mcpTool) → String? - Extracts the display title from an MCP tool descriptor or McpBaseTool.
-
extractText(
MemoryEntry memory, {String splitter = ' '}) → String -
The concatenated text from all text parts in
memory. -
forecast(
{required String projectId, required String historyData, required String timestampCol, required String dataCol, int horizon = 10, List< Object?> ? idCols, required Object credentials, required Object settings, required ToolContext toolContext}) → Future<Map< String, Object?> > -
Runs
AI.FORECASToverhistoryDataand returns forecast rows. -
formatSkillsAsXml(
List< SkillDescriptor> skills) → String - Renders a skill summary list as XML text for model prompts.
-
fromFunctionWithOptions(
Object func, {List< String> ? ignoreParams, Map<String, dynamic> ? parametersJsonSchema, Map<String, dynamic> ? responseJsonSchema}) → FunctionDeclaration - Compatibility alias for buildFunctionDeclaration.
-
geminiToJsonSchema(
Map< String, dynamic> geminiSchema) → Map<String, Object?> -
The JSON schema converted from Gemini schema format
geminiSchema. -
getBigQueryClient(
{required String? project, required Object credentials, String? location, Object? userAgent}) → BigQueryClient - Returns a configured BigQuery client.
-
getBigQuerySkill(
[String skillName = 'bigquery-ai-ml']) → Skill -
Loads a bundled BigQuery Skill by
skillName. -
getBigtableAdminClient(
{required String project, required Object credentials}) → BigtableAdminClient -
Returns a Bigtable admin client for
projectandcredentials. -
getBigtableDataClient(
{required String project, required Object credentials}) → BigtableDataClient -
Returns a Bigtable data client for
projectandcredentials. -
getClusterInfo(
{required String projectId, required String instanceId, required String clusterId, required Object credentials}) → Future< Map< String, Object?> > -
Gets metadata for cluster
clusterIdininstanceId. -
getDataAgentInfo(
{required String dataAgentName, required Object credentials, Object? settings, ToolContext? toolContext, DataAgentHttpGet? httpGet}) → Future< Map< String, Object?> > - Fetches metadata for a single data agent resource.
-
getDataplexCatalogClient(
{required Object credentials, Object? userAgent}) → DataplexCatalogClient - Returns a configured Dataplex catalog client.
-
getDatasetInfo(
{required String projectId, required String datasetId, required Object credentials, required Object settings}) → Future< Map< String, Object?> > -
Returns dataset metadata for
datasetId. -
getExecuteSql(
SpannerToolSettings settings) → ExecuteSqlTool -
Returns an
ExecuteSqlTooltailored to the configuredsettings. -
getInstance(
{required String projectId, required String instanceId, required Object credentials}) → Future< Map< String, Object?> > -
Returns Spanner instance details for
instanceId. -
getInstanceConfig(
{required String projectId, required String configId, required Object credentials}) → Future< Map< String, Object?> > -
Returns instance config details for
configId. -
getInstanceInfo(
{required String projectId, required String instanceId, required Object credentials}) → Future< Map< String, Object?> > -
Gets metadata for one Bigtable
instanceId. -
getJobInfo(
{required String projectId, required String jobId, required Object credentials, required Object settings}) → Future< Map< String, Object?> > -
Returns job metadata for
jobId. -
getPublisherClient(
{required Object credentials, Object? userAgent, bool enableMessageOrdering = false}) → Future< PubSubPublisherClient> -
Returns a cached publisher client for
credentials, or creates one. -
getSpannerAdminClient(
{required String project, required Object credentials}) → SpannerAdminClient -
Returns a configured Spanner admin client for
project. -
getSpannerClient(
{required String project, required Object credentials}) → SpannerClient -
Returns a configured Spanner client for
projectandcredentials. -
getSubscriberClient(
{required Object credentials, Object? userAgent}) → Future< PubSubSubscriberClient> -
Returns a cached subscriber client for
credentials, or creates one. -
getTableInfo(
{required String projectId, required String instanceId, required String tableId, required Object credentials}) → Future< Map< String, Object?> > -
Gets metadata for table
tableIdininstanceId. -
getTableSchema(
{required String projectId, required String instanceId, required String databaseId, required String tableName, required Object credentials, String namedSchema = ''}) → Future< Map< String, Object?> > -
Returns schema details and metadata for
tableName. -
hasEnvironmentLock(
BaseEnvironment environment) → bool -
Returns
truewhenenvironmentcurrently has a weak per-environment lock entry. -
hasLoneUtf16Surrogates(
String value) → bool -
Returns
truewhenvaluecontains any unpaired UTF-16 surrogate code unit. -
isDefaultValueCompatible(
Object? defaultValue, Object? annotation) → bool -
Whether
defaultValueis compatible withannotation. -
isSessionTerminatedError(
Object? error) → bool - Checks whether an error is an MCP server reporting it no longer holds our session.
-
isUnspacedLetter(
String charOrRune) → bool -
Returns whether
charOrRuneis a letter of a script written without spaces. -
jsonSchemaTypeForValue(
Object? value) → String? -
The JSON schema type inferred from runtime
value. -
jsonToAuthCredential(
String data) → AuthCredential? - Parses a JSON auth credential; an empty string means no credential.
-
jsonToAuthScheme(
String data) → Object? - Parses a JSON security scheme; an empty string means no scheme.
-
listAccessibleDataAgents(
{required String projectId, required Object credentials, String? location, int? pageSize, String? pageToken, Object? settings, ToolContext? toolContext, DataAgentHttpGet? httpGet}) → Future< Map< String, Object?> > -
Lists accessible data agents for
projectId. -
listClusters(
{required String projectId, required String instanceId, required Object credentials}) → Future< Map< String, Object?> > -
Lists cluster IDs in
instanceId. -
listDatabases(
{required String projectId, required String instanceId, required Object credentials}) → Future< Map< String, Object?> > -
Lists database ids within
instanceId. -
listDatasetIds(
{required String projectId, required Object credentials, required Object settings}) → Future< Object> -
Lists dataset ids available in
projectId. -
listInstanceConfigs(
{required String projectId, required Object credentials}) → Future< Map< String, Object?> > -
Lists instance config ids in
projectId. -
listInstances(
{required String projectId, required Object credentials}) → Future< Map< String, Object?> > -
Lists Bigtable instance IDs for
projectId. -
listNamedSchemas(
{required String projectId, required String instanceId, required String databaseId, required Object credentials}) → Future< Map< String, Object?> > - Lists user-defined named schemas in a Spanner database.
-
listSkillsInDir(
String skillsBasePath, {void onError(String skillId, Object error)?}) → Map< String, Frontmatter> - Returns no directory-backed skills on Web.
-
listSkillsInGcsDir(
String bucketName, {String skillsBasePath = '', Object? storageStore}) → Future< Map< String, Frontmatter> > - Throws because GCS-backed skill loading is unsupported on Web.
-
listTableIds(
{required String projectId, required String datasetId, required Object credentials, required Object settings}) → Future< Object> -
Lists table ids in
datasetId. -
listTableIndexColumns(
{required String projectId, required String instanceId, required String databaseId, required String tableId, required Object credentials}) → Future< Map< String, Object?> > -
Lists index column metadata for
tableId. -
listTableIndexes(
{required String projectId, required String instanceId, required String databaseId, required String tableId, required Object credentials}) → Future< Map< String, Object?> > -
Lists index metadata for
tableId. -
listTableNames(
{required String projectId, required String instanceId, required String databaseId, required Object credentials, String namedSchema = ''}) → Future< Map< String, Object?> > -
Lists table names in a Spanner database and optional
namedSchema. -
listTables(
{required String projectId, required String instanceId, required Object credentials}) → Future< Map< String, Object?> > -
Lists table IDs in
instanceId. -
loadSkillFromDir(
String skillDirPath) → Skill - Throws because directory-based skill loading is unsupported on Web.
-
loadSkillFromGcsDir(
String bucketName, String skillId, {String skillsBasePath = '', Object? storageStore}) → Future< Skill> - Throws because GCS-backed skill loading is unsupported on Web.
-
loadSkillFromMarkdown(
String markdown, {Resources? resources}) → Skill -
Loads a Skill from the text of a
SKILL.mdfile. -
loadSkillFromZipBytes(
List< int> zipBytes) → Skill -
Loads a Skill from ZIP bytes containing a root-level
SKILL.md. -
loadWebPage(
String url, {Duration timeout = _defaultLoadWebPageTimeout, int maxResponseBytes = _defaultLoadWebPageMaxResponseBytes, bool allowPrivateAddresses = false}) → Future< String> -
The extracted readable text for
urlor an error message string. -
mapPydanticTypeToPropertySchema(
Map< String, dynamic> propertySchema) → void -
Maps JSON/Pydantic types in a single
propertySchemato GeminiSchemauppercase types. -
mapPydanticTypeToSchemaType(
Map< String, dynamic> schema) → void -
Maps JSON/Pydantic types across all properties of
schemato GeminiSchemauppercase types. -
mergeMcpAuthAndProviderHeaders(
{Map< String, String> ? authHeaders, Map<String, String> ? providerHeaders}) → Map<String, String> -
Merges MCP session headers so explicit
authHeaderstake precedence overproviderHeaderson case-insensitive header name collisions. -
openidDictToSchemeCredential(
Map< String, Object?> config, List<String> scopes, Map<String, Object?> credential) → ({AuthCredential authCredential, OpenIdConnectWithConfig authScheme}) - Builds OpenID Connect scheme and credential from config and secrets.
-
openidUrlToSchemeCredential(
String openidUrl, List< String> scopes, Map<String, Object?> credential, {OpenIdConfigFetcher? configFetcher}) → Future<({AuthCredential authCredential, OpenIdConnectWithConfig authScheme})> -
Resolves OpenID configuration from
openidUrland builds scheme+credential. -
parsedOperationFromJsonString(
String source) → ParsedOperation -
Parses a JSON
sourcestring into a ParsedOperation. -
parseParameterSchema(
{required String name, Object? annotation, Object? defaultValue}) → Map< String, dynamic> -
The parsed JSON schema entry for a parameter
name. -
parseSemanticJudgement(
String text, {Object? expected, Object? actual}) → ArgMatchResult -
Parses a model response
textinto an ArgMatchResult. -
parseSemanticPayload(
String text) → Map< String, Object?> -
Parses a JSON object payload from
text, stripping optional markdown code fences. -
parseSemanticScore(
Object? raw, {required bool matched}) → double -
Parses a numeric score in
[0.0, 1.0]fromraw, defaulting frommatchedwhen null. -
parseSemanticVerdict(
Object? raw) → bool -
Parses a boolean verdict from
raw, rejecting numeric values and arbitrary strings. -
partToMcpContentBlock(
Part part) → McpContentBlock? - Converts an ADK Part into an MCP McpContentBlock.
-
processPydanticSchema(
bool vertexai, Map< String, dynamic> schema) → Map<String, dynamic> -
Normalizes a Pydantic-style JSON
schemafor Gemini API or Vertex AI ([vertexai]). -
publishEventarcMessage(
{required String bus, required String type, required String source, EventarcToolConfig? settings, EventarcCredentialsConfig? credentials, Object? data, bool isBase64Encoded = false, bool includeTracingExtension = false, String? datacontenttype, String specversion = '1.0', String? subject, String? id, String? time, Map< String, String> ? customAttributes, Map<String, Object?> ? protoMessage, Client? httpClient}) → Future<Map< String, dynamic> > - Publishes a structured CloudEvent to Google Cloud Eventarc Advanced.
-
publishMessage(
{required String topicName, required String message, required Object credentials, required Object settings, Map< String, String> ? attributes, String orderingKey = '', ToolContext? toolContext}) → Future<Map< String, Object?> > -
Publishes
messagetotopicName. -
pubSubCacheSizes(
) → Map< String, int> - Current in-memory Pub/Sub client cache sizes.
-
pullMessages(
{required String subscriptionName, required Object credentials, required Object settings, int maxMessages = 1, bool autoAck = false, ToolContext? toolContext}) → Future< Map< String, Object?> > -
Pulls up to
maxMessagesfromsubscriptionName. -
readSkillProperties(
String skillDirPath) → Frontmatter - Throws because skill-property file loading is unsupported on Web.
-
registerArgMatcher(
String type, ArgMatcherFactory factory) → void -
Registers a custom BaseArgMatcher factory for
type. -
removeAnyOf(
Map< String, dynamic> schema) → void -
Collapses
anyOfunions inschema['properties']to their first non-null member. -
removeDefault(
Map< String, dynamic> schema) → void -
Removes
defaultkeys from top-level property schemas inschema. -
removeNullable(
Map< String, dynamic> schema) → void -
Removes
nullablekeys from top-level property schemas inschema. -
removeTitle(
Map< String, dynamic> schema) → void -
Removes
titlekeys from top-level property schemas inschema. -
renamePythonKeywords(
String value, {String prefix = 'param_'}) → String -
Renames reserved identifiers by prefixing
valuewithprefix. -
resetBigQueryClientFactory(
) → void - Restores the default BigQuery client factory.
-
resetBigQueryInsightsStreamProvider(
) → void - Restores the default BigQuery insights streaming provider.
-
resetBigtableClientFactories(
) → void - Restores default Bigtable client factories.
-
resetCustomArgMatchers(
) → void - Clears custom registered argument matchers (used in tests).
-
resetDataplexCatalogClientFactory(
) → void - Restores the default Dataplex catalog client factory.
-
resetEventarcPublishInvoker(
) → void - Restores the default publish invoker used by domain-specific Eventarc tools.
-
resetPubSubClientFactories(
) → void - Restores default Pub/Sub client factories.
-
resetSecretManagerSecretFetcher(
) → void - Restores the default Secret Manager fetcher implementation.
-
resetSpannerAdminClientFactory(
) → void - Restores the default Spanner admin client factory.
-
resetSpannerClientFactory(
) → void - Restores the default Spanner client factory.
-
resetSpannerEmbedders(
) → void - Restores default Spanner embedders.
-
resetSpannerPubSubRuntime(
{bool cleanupPubSubClients = true}) → Future< void> - Resets Spanner and Pub/Sub runtime overrides.
-
resetToolRuntimeBootstrap(
{bool resetBigQuery = true, bool resetBigtable = true, bool resetSpannerClient = true, bool resetSpannerAdminClient = true, bool resetSpannerEmbeddersRuntime = true, bool clearToolboxDelegate = true, bool clearDefaultAudioRecognizer = true}) → void - Resets bootstrap registrations back to package defaults.
-
resolveNodeInputSchema(
Object nodeLike) → Object? -
Resolves the effective input schema for
nodeLike, if any. -
resolveSandboxPath(
Object path, {required String workspaceRoot}) → String -
Resolves a file
pathagainst a remote sandboxworkspaceRoot. -
resolveThinkingLevel(
Object? level) → String? -
Maps a user-supplied thinking
levelto its canonical wire value, ornull. -
sanitizeSchemaFormatsForGemini(
Map< String, dynamic> schema, {bool preserveNullType = false}) → Map<String, dynamic> - Normalizes schema keys and formats to Gemini-compatible values.
-
sanitizeSchemaType(
Map< String, dynamic> schema, {bool preserveNullType = false}) → Map<String, dynamic> -
Normalizes the
typefield and ensures required array defaults. -
searchCatalog(
{required String prompt, required String projectId, required Object credentials, required Object settings, String? location, int pageSize = 10, List< String> ? projectIdsFilter, List<String> ? datasetIdsFilter, List<String> ? typesFilter}) → Future<Map< String, Object?> > - Searches Dataplex catalog entries scoped to BigQuery assets.
-
serviceAccountDictToSchemeCredential(
Map< String, Object?> config, List<String> scopes) → ({AuthCredential authCredential, SecurityScheme authScheme}) - Builds service-account auth scheme and credential from JSON-like config.
-
serviceAccountSchemeCredential(
ServiceAccountAuth config) → ({AuthCredential authCredential, SecurityScheme authScheme}) - Builds service-account auth scheme and credential from typed config.
-
setBigQueryClientFactory(
BigQueryClientFactory factory) → void - Overrides the BigQuery client factory.
-
setBigQueryInsightsStreamProvider(
BigQueryInsightsStreamProvider provider) → void - Replaces the streaming provider used by askDataInsights.
-
setBigtableClientFactories(
{BigtableAdminClientFactory? adminClientFactory, BigtableDataClientFactory? dataClientFactory}) → void - Overrides Bigtable client factories.
-
setDataplexCatalogClientFactory(
DataplexCatalogClientFactory factory) → void - Overrides the Dataplex catalog client factory.
-
setEventarcPublishInvoker(
EventarcPublishInvoker invoker) → void - Overrides the default publish invoker used by domain-specific Eventarc tools.
-
setPubSubClientFactories(
{PubSubPublisherFactory? publisherFactory, PubSubSubscriberFactory? subscriberFactory}) → void - Overrides Pub/Sub client factories.
-
setResourceLimits(
BashToolPolicy policy, [SetRlimitFn? setrlimit]) → void -
Applies resource limits from
policyviasetrlimit. -
setSecretManagerSecretFetcher(
SecretManagerSecretFetcher fetcher) → void - Overrides the secret fetcher used by SecretManagerClient.
-
setSpannerAdminClientFactory(
SpannerAdminClientFactory factory) → void - Overrides the Spanner admin client factory.
-
setSpannerClientFactory(
SpannerClientFactory factory) → void - Overrides the Spanner client factory.
-
setSpannerEmbedders(
{SpannerEmbedder? embedder, SpannerEmbedderAsync? embedderAsync}) → void - Overrides Spanner embedders.
-
similaritySearch(
{required String projectId, required String instanceId, required String databaseId, required String tableName, required String query, required String embeddingColumnToSearch, required List< String> columns, required Map<String, Object?> embeddingOptions, required Object credentials, String? additionalFilter, Map<String, Object?> ? searchOptions}) → Future<Map< String, Object?> > - Executes vector similarity search against a Spanner table.
-
snakeToLowerCamel(
String snakeCaseString) → String -
Converts
snake_casetext tolowerCamelCase. -
startEntryNodes(
Workflow workflow) → List< BaseNode> -
Returns the entry nodes of
workflowthat can receiveSTARTinput. -
toGeminiSchema(
Map< String, dynamic> openApiSchema) → Map<String, dynamic> - Converts an OpenAPI-style schema into a Gemini-ready schema.
-
tokenToSchemeCredential(
String tokenType, {String? location, String? name, String? credentialValue}) → ({AuthCredential? authCredential, SecurityScheme authScheme}) - Builds a security scheme and optional credential from a token description.
-
toPromptJson(
Object? value) → String -
Serializes
valueas canonical JSON for a semantic matcher prompt. -
toSnakeCase(
String text) → String -
Converts
textto snake_case. -
transferToAgent(
Map< String, dynamic> args, ToolContext toolContext) → Object? - Built-in function implementation that requests agent transfer.
-
updateDataAgent(
{required String dataAgentName, required Object agentConfig, required String updateMask, required Object credentials, Object? settings, ToolContext? toolContext, DataAgentHttpPatch? httpPatch, DataAgentHttpGet? httpGet}) → Future< Map< String, Object?> > - Updates an existing data agent resource.
-
validateRelativeResourcePath(
String path) → String -
Validates and normalizes a skill-relative resource
path. -
validateSkillDir(
String skillDirPath) → List< String> - Reports unsupported validation mode on Web.
-
vectorStoreSimilaritySearch(
{required String query, required Object credentials, required Object settings}) → Future< Map< String, Object?> > - Executes vector similarity search using SpannerToolSettings payload.
-
withModelConsultClientLabel<
T> (String label, Future< T> action()) → Future<T> -
Runs
actionin a zone tagged withlabelfor tracking header attribution. -
workingDirOrNone(
BaseEnvironment environment) → Object? -
Returns the configured working directory of
environment, if any. -
workingDirPathOrNone(
BaseEnvironment environment) → String? -
Returns
environment's working directory, ornullwhen it has none yet.
Typedefs
- AgentSimulator = AgentSimulatorFactory
- Backward-compatible alias for AgentSimulatorFactory.
-
AgentSimulatorCallback
= Future<
Map< Function(BaseTool tool, Map<String, Object?> ?>String, Object?> args, Object toolContext) - Callback signature used to simulate one tool invocation.
-
ApiHubAccessTokenProvider
= Future<
String?> Function({String? serviceAccountJson}) - Resolves an API Hub access token.
-
ApiHubRequestExecutor
= Future<
ApiHubHttpResponse> Function({required Map<String, String> headers, required String method, required Uri uri}) - Executes one API Hub HTTP request.
-
ApiRegistryAuthHeadersProvider
= Future<
Map< Function()String, String> > - Function that resolves auth headers for API Registry and MCP calls.
-
ApiRegistryHttpGetProvider
= Future<
ApiRegistryHttpResponse> Function(Uri uri, {required Map<String, String> headers}) - Function that executes one API Registry list request.
-
ApplicationIntegrationAccessTokenProvider
= Future<
String?> Function({String? serviceAccountJson}) - Resolves an access token for Application Integration calls.
-
ApplicationIntegrationRequestExecutor
= Future<
ApplicationIntegrationHttpResponse> Function({String? body, required Map<String, String> headers, required String method, required Uri uri}) - Executes one Application Integration HTTP request.
-
ArgMatcherFactory
= BaseArgMatcher Function(Map<
String, Object?> config) - Factory signature for constructing a BaseArgMatcher from a JSON map.
- AuthPreparationState = String
- State string returned by auth preparation.
- AuthTokenGetter = String Function()
- Returns an auth token value for a toolbox credential key.
- BaseEnvironmentSimulationStrategy = BaseMockStrategy
- Compatibility alias for the renamed environment simulation strategy base.
-
BigQueryClientFactory
= BigQueryClient Function({required Object credentials, String? location, required String? project, required List<
String> userAgent}) - Factory for creating BigQueryClient instances.
-
BigQueryInsightsStreamProvider
= Future<
Stream< Function({required Map<String> >String, String> headers, required Map<String, Object?> payload, required Uri url}) - Signature for stream providers used by BigQuery insights tools.
- BigtableAdminClientFactory = BigtableAdminClient Function({required Object credentials, required String project, required String userAgent})
- Factory for creating BigtableAdminClient instances.
- BigtableDataClientFactory = BigtableDataClient Function({required Object credentials, required String project, required String userAgent})
- Factory for creating BigtableDataClient instances.
- BoundParamProvider = Object? Function()
- Computes a bound parameter value at invocation time.
-
ComputerUseToolExecutor
= Future<
Object?> Function(ToolContext toolContext, Future<Object?> action()) - Callback that wraps a ComputerUseTool invocation (for example to serialize access to the underlying BaseComputer and call BaseComputer.prepare).
-
ConfirmationPredicate
= FutureOr<
bool> Function(Map<String, dynamic> args) - Callback signature for dynamic confirmation requirements.
-
CrewaiMandatoryArgsResolver
= List<
String> Function(Function toolRunner) - Resolves mandatory argument names for a CrewAI tool runner.
-
CrewaiSchemaResolver
= Map<
String, dynamic> ? Function(Function toolRunner) - Resolves a JSON schema for a CrewAI tool runner.
- CrewaiToolResolver = Function Function(String toolPath)
- Resolves a CrewAI tool path to an executable function.
-
DataAgentHttpDelete
= Future<
Map< Function({required Map<String, Object?> >String, String> headers, required Uri uri}) - Performs a Data Agent HTTP DELETE request.
-
DataAgentHttpGet
= Future<
Map< Function({required Map<String, Object?> >String, String> headers, required Uri uri}) - Performs a Data Agent HTTP GET request.
-
DataAgentHttpPatch
= Future<
Map< Function({required Map<String, Object?> >String, String> headers, required Map<String, Object?> payload, required Uri uri}) - Performs a Data Agent JSON PATCH request.
-
DataAgentHttpPost
= Future<
Map< Function({required Map<String, Object?> >String, String> headers, required Map<String, Object?> payload, required Uri uri}) - Performs a Data Agent JSON POST request.
-
DataAgentStreamPost
= Future<
List< Function({required Map<String> >String, String> headers, required Map<String, Object?> payload, required Uri uri}) - Performs a Data Agent streaming POST request and returns raw lines.
-
DataplexCatalogClientFactory
= DataplexCatalogClient Function({required Object credentials, required List<
String> userAgent}) - Factory for creating DataplexCatalogClient instances.
-
DiscoveryEngineSearchAccessTokenProvider
= Future<
String> Function() - Access-token provider for Discovery Engine requests.
-
DiscoveryEngineSearchHandler
= FutureOr<
List< Function(DiscoveryEngineSearchRequest request)DiscoveryEngineSearchResult> > - Pluggable handler for custom Discovery Engine search execution.
-
DiscoveryEngineSearchHttpRequestProvider
= Future<
DiscoveryEngineSearchHttpResponse> Function(DiscoveryEngineSearchHttpRequest request) - HTTP transport callback for Discovery Engine API requests.
-
DockerProcessRunner
= Future<
ProcessResult> Function(String executable, List<String> arguments) - Process runner signature used by ProcessContainerRuntimeClient.
-
EnvironmentSimulationCallback
= Future<
Map< Function(BaseTool tool, Map<String, Object?> ?>String, Object?> args, Object toolContext) - Callback signature used to simulate one tool invocation.
- EnvironmentSimulationConfig = AgentSimulatorConfig
- Compatibility alias for the renamed environment simulation config surface.
- EnvironmentSimulationEngine = AgentSimulatorEngine
- Compatibility alias for the renamed environment simulation engine surface.
- EnvironmentSimulationPlugin = AgentSimulatorPlugin
- Compatibility alias for the renamed environment simulation plugin surface.
- EnvironmentSimulationToolConnectionAnalyzer = ToolConnectionAnalyzer
- Compatibility alias for the renamed environment simulation analyzer.
- EnvironmentSimulationToolConnectionMap = ToolConnectionMap
- Compatibility alias for the renamed environment simulation mapping surface.
- EnvironmentSimulationToolSpecMockStrategy = ToolSpecMockStrategy
- Compatibility alias for the renamed environment simulation tool strategy.
-
EventarcPublishInvoker
= FutureOr<
Map< Function(Map<String, dynamic> >String, dynamic> kwargs) -
Invoker callback receiving resolved
publish_messagekeyword arguments. -
ExecuteSqlTool
= Future<
Map< Function({required Object credentials, bool dryRun, required String projectId, required String query, required Object settings, required ToolContext toolContext})String, Object?> > - Signature for SQL execution callbacks used by BigQuery query tools.
- ExecutionResult = EnvironmentExecutionResult
-
Alias for EnvironmentExecutionResult matching upstream Python
ExecutionResult. -
GoogleApiRequestExecutor
= Future<
Map< Function({Object? body, required Map<String, Object?> >String, String> headers, required String method, required Uri uri}) - Executes one Google API HTTP request.
-
GoogleDiscoverySpecFetcher
= Future<
Map< Function(String apiName, String apiVersion)String, Object?> > - Fetches a Google Discovery document for one API name/version pair.
-
HeaderProvider
= Map<
String, String> Function(ReadonlyContext context) - Callback that provides headers from a ReadonlyContext.
- LangchainMetadataResolver = String? Function(Function toolRunner)
- Resolves an optional metadata string (name or description) for a LangChain tool runner.
-
LangchainSchemaResolver
= Map<
String, dynamic> ? Function(Function toolRunner) - Resolves an optional JSON schema for a LangChain tool runner.
- LangchainToolResolver = Function Function(String toolPath)
- Resolves a LangChain tool path to an executable function.
- McpConnectionParams = Object
- Union type alias for supported MCP transport connection parameters.
-
McpElicitationCallback
= FutureOr<
Object?> Function(Map<String, Object?> params) -
Callback invoked when an MCP server requests client elicitation (
elicitation/create). -
McpHeaderProvider
= Map<
String, String> Function(ReadonlyContext readonlyContext) - Header-builder callback applied to MCP tool calls in this toolset.
-
McpMessageHandler
= FutureOr<
void> Function(McpServerMessage message) - Callback invoked when an MCP server sends a notification or server message.
-
McpSamplingCallback
= FutureOr<
Object?> Function(List<Map< messages, {Map<String, Object?> >String, Object?> ? params}) - Callback invoked when an MCP server requests client-side sampling.
-
McpToolExecutor
= FutureOr<
Object?> Function(Map<String, dynamic> args, {Map<String, String> ? headers}) - Callback signature for custom local MCP tool executors.
-
McpToolHeaderProvider
= Map<
String, String> Function(ReadonlyContext readonlyContext) - Header-builder callback used before making MCP tool HTTP calls.
-
OpenIdConfigFetcher
= Future<
Map< Function(String url)String, Object?> > -
Fetches an OpenID Connect discovery document from
url. -
ProcessArtifactCallback
= FutureOr<
Part?> Function(Part artifact, String artifactName) - Signature for custom artifact preprocessing callback.
-
ProcessArtifactNamesCallback
= FutureOr<
List< Function(List<String> >String> artifactNames, ToolContext toolContext) - Signature for filtering or transforming available artifact names.
-
PubSubPublisherFactory
= Future<
PubSubPublisherClient> Function({required Object credentials, required bool enableMessageOrdering, required List<String> userAgents}) - Factory for creating PubSubPublisherClient instances.
-
PubSubSubscriberFactory
= Future<
PubSubSubscriberClient> Function({required Object credentials, required List<String> userAgents}) - Factory for creating PubSubSubscriberClient instances.
-
RemoteMcpHeaderProvider
= FutureOr<
Map< Function(ReadonlyContext context)String, String> ?> - Callback signature for dynamic MCP headers.
-
RestApiRequestExecutor
= Future<
RestApiResponse> Function({required Map<String, Object?> requestParams}) - Callback that executes an HTTP request with normalized request parameters.
-
SecretManagerSecretFetcher
= Future<
String> Function({String? authToken, required String resourceName, String? serviceAccountJson}) - Fetches a secret payload from Secret Manager.
-
ServiceAccountTokenResolver
= Future<
String?> Function(ServiceAccountAuth serviceAccount) - Callback used to exchange service-account auth for an access token.
- SetRlimitFn = void Function(String resource, (int, int) limits)
- Callback invoked for each resource limit applied by setResourceLimits.
- SimulatorStrategyFactory = BaseMockStrategy Function(MockStrategy mockStrategyType, String llmName, GenerateContentConfig llmConfig)
- Factory signature for creating mock strategies per configuration.
- SkillMetadataValue = Object?
- Metadata value allowed in skill frontmatter.
- SkillResourceData = Object
- Resource payload allowed in skill references/assets.
- SpannerAdminClientFactory = SpannerAdminClient Function({required Object credentials, required String project})
- Factory for SpannerAdminClient instances.
- SpannerClientFactory = SpannerClient Function({required Object credentials, required String project})
- Factory for creating SpannerClient instances.
-
SpannerEmbedder
= List<
List< Function({required List<double> >String> contents, Object? genAiClient, int? outputDimensionality, required String vertexAiEmbeddingModelName}) - Synchronous embedder callback used by Spanner vector tooling.
-
SpannerEmbedderAsync
= Future<
List< Function({required List<List< >double> >String> contents, Object? genAiClient, int? outputDimensionality, required String vertexAiEmbeddingModelName}) - Asynchronous embedder callback used by Spanner vector tooling.
- SseConnectionParams = StreamableHTTPConnectionParams
-
Alias for StreamableHTTPConnectionParams matching Python
SseConnectionParams. - SseServerParams = StreamableHTTPConnectionParams
-
Alias for StreamableHTTPConnectionParams matching Python
SseServerParams. - StdioServerParameters = StdioConnectionParams
-
Alias for StdioConnectionParams matching Python
StdioServerParameters. -
ToolboxToolsetDelegateFactory
= ToolboxToolsetDelegate Function({Map<
String, String> ? additionalHeaders, Map<String, Object?> ? additionalOptions, Map<String, AuthTokenGetter> ? authTokenGetters, Map<String, Object?> ? boundParams, Object? credentials, required String serverUrl, List<String> ? toolNames, String? toolsetName}) - Creates a toolbox delegate used by ToolboxToolset.
- ToolContext = Context
- Mutable tool execution context alias used by tool interfaces.
- ToolPredicate = bool Function(BaseTool tool, ReadonlyContext? readonlyContext)
- Predicate signature used to decide whether a tool is selectable.
-
VertexAiRagQueryHandler
= Future<
List< Function({List<String> >String> ? ragCorpora, List<VertexAiRagResource> ? ragResources, int? similarityTopK, required String text, double? vectorDistanceThreshold}) - Callback signature for live Vertex AI RAG querying.
Exceptions / Errors
- AdvisorError
- Error payload returned or thrown when an advisor model consultation fails.
- AgentEngineSandboxNotFoundException
- Exception thrown when an Agent Engine sandbox resource is not found (404).
- AuthCredentialMissingError
- Error thrown when required auth credentials are missing.
- BigtableClientFactoryNotConfiguredException
- Exception thrown when Bigtable client factories are not configured.
- DataplexCatalogApiException
- Exception thrown when a Dataplex Catalog API request fails.
- DiscoveryEngineSearchApiException
- Exception thrown when Discovery Engine API interaction fails.
- EnvironmentLockCancelledException
- Exception thrown when an operation waiting on an environment lock is cancelled.
- McpHttpStatusException
- Thrown when an HTTP request returns a non-success status code.
- McpJsonRpcException
-
Thrown when a JSON-RPC response contains an
errorobject. - SkillSourceException
- Exception used by SkillSource implementations.
- SpannerClientFactoryNotConfiguredException
- Exception thrown when no Spanner client factory is configured.
- SpannerEmbedderNotConfiguredException
- Exception thrown when no Spanner embedder runtime is configured.