#![deny(missing_docs)]
pub mod advisor;
mod agent_tool;
mod arguments;
pub mod builtin;
mod function_tool;
#[cfg(feature = "mcp")]
pub mod mcp;
mod simple_context;
mod stateful_tool;
pub mod toolset;
#[cfg(feature = "code")]
pub mod code_execution;
#[cfg(feature = "memory-tools")]
pub mod memory;
#[cfg(feature = "graph-memory-tools")]
pub use memory::{GraphMemoryToolset, RelateTool, RememberTool};
#[cfg(feature = "slack")]
pub mod slack;
#[cfg(feature = "bigquery")]
pub mod bigquery;
#[cfg(feature = "spanner")]
pub mod spanner;
#[cfg(feature = "mcp-sampling")]
pub mod sampling;
#[cfg(feature = "example-store")]
pub mod example_store;
#[cfg(feature = "vertex-agent-registry")]
pub mod vertex;
pub use adk_core::{
AdkError, ErrorCategory, ErrorComponent, Result, TOOL_INVALID_ARGUMENTS_CODE, Tool,
ToolContext, ToolEffect, Toolset,
};
pub use adk_rust_macros::tool;
pub use advisor::{AdvisorTool, AdvisorToolBuilder};
pub use agent_tool::{
AgentTool, AgentToolConfig, AgentToolFailureMode, AgentToolSessionSnapshot,
AgentToolStateMergePolicy,
};
pub use arguments::{
TOOL_INVALID_PARAMETERS_SCHEMA_CODE, ToolArgumentValidator, close_object_schemas,
coerce_integral_floats, model_facing_schema,
};
pub use async_trait::async_trait;
pub use builtin::{
AnthropicAdvisorTool, AnthropicBashTool20241022, AnthropicBashTool20250124,
AnthropicTextEditorTool20250124, AnthropicTextEditorTool20250429,
AnthropicTextEditorTool20250728, BypassBuiltinTool, BypassMultiToolsLimit,
DeepSeekWebSearchTool, ExitLoopTool, GeminiCodeExecutionTool, GeminiComputerEnvironment,
GeminiComputerUseTool, GeminiFileSearchTool, GoogleMapsContext, GoogleMapsTool,
GoogleSearchTool, LoadArtifactsTool, OpenAIApplyPatchTool, OpenAIApproximateLocation,
OpenAICodeInterpreterTool, OpenAIComputerEnvironment, OpenAIComputerUseTool,
OpenAIFileSearchTool, OpenAIImageGenerationTool, OpenAILocalShellTool, OpenAIMcpTool,
OpenAIShellTool, OpenAIWebSearchTool, UrlContextTool, WebSearchTool, WebSearchUserLocation,
};
#[cfg(feature = "example-store")]
pub use example_store::{ExampleStoreClient, ExampleStoreConfig, ExampleStoreProvider};
pub use function_tool::FunctionTool;
#[cfg(feature = "mcp")]
pub use mcp::{
AutoDeclineElicitationHandler, ElicitationHandler, McpAuth, McpDiscoveryLimits,
McpHttpClientBuilder, McpSchemaLimits, McpServerManager, McpTaskConfig, McpToolset,
OAuth2Config, Resource, ResourceContents, ResourceNotificationHandler, ResourceTemplate,
};
pub use simple_context::SimpleToolContext;
pub use stateful_tool::StatefulTool;
pub use toolset::{
BasicToolset, FilteredToolset, MergedToolset, PrefixedToolset, string_predicate,
};
#[cfg(feature = "vertex-agent-registry")]
pub use vertex::agent_registry::{AgentRegistryClient, AgentRegistryConfig, AgentSearchTool};
#[cfg(feature = "code")]
pub use code_execution::CodeTool;
#[cfg(feature = "code")]
pub use code_execution::FrontendCodeTool;
#[cfg(feature = "code")]
pub use code_execution::JavaScriptCodeTool;
#[cfg(feature = "code")]
pub use code_execution::PythonCodeTool;
#[cfg(feature = "code")]
pub use code_execution::MontyPythonCodeTool;
#[cfg(feature = "code-embedded-python")]
pub use code_execution::MontyPythonCodeToolBuilder;