Expand description
Built-in tools for langchainrust.
Provides a collection of ready-to-use tools for agents:
Calculator: Math expression evaluationDateTimeTool: Date/time queries and calculationsSimpleMathTool: Advanced math operationsPythonREPLTool: Python code execution (disabled by default)DuckDuckGoSearchTool: Web search via DuckDuckGoURLFetchTool: Web page fetching and parsingWikipediaTool: Wikipedia searchFileTool: Sandboxed file operationsHTTPTool: HTTP requests with SSRF protectionSQLTool: Read-only SQL queries (feature-gated)ComputerUseTool: Screen interaction via Anthropic APISandboxTool/LocalSandbox: Code execution sandbox
Re-exports§
pub use extended::ComputerMode;pub use extended::ComputerUseInput;pub use extended::ComputerUseOutput;pub use extended::ComputerUseTool;pub use extended::FileTool;pub use extended::HTTPTool;pub use sandbox::CodeSandbox;pub use sandbox::Language;pub use sandbox::LocalSandbox;pub use sandbox::RunResult;pub use sandbox::SandboxError;pub use sandbox::SandboxTool;
Modules§
- extended
- Tool extensions: HTTP / File / SQL / ComputerUse
- sandbox
- Code Interpreter Sandbox for pluggable code execution.
Structs§
- Calculator
- Calculator tool
- Calculator
Input - Calculator input
- Calculator
Output - Calculator output
- Date
Time Input - DateTime tool input parameters.
- Date
Time Output - DateTime tool output result.
- Date
Time Tool - DateTime tool for querying and manipulating dates and times.
- Duck
Duck GoSearch Tool - DuckDuckGo web search tool
- Math
Input - Math tool input parameters.
- Math
Output - Math tool output result.
- PythonREPL
Input - Python REPL tool input
- PythonREPL
Output - Python REPL tool output
- PythonREPL
Tool - Python code execution tool
- Search
Input - Search tool input
- Search
Output - Search tool output
- Simple
Math Tool - Advanced math tool for agents.
- Skill
- A parsed, loadable skill unit.
- Skill
Frontmatter - Required head matter of a SKILL.md file.
- URLFetch
Input - URLFetch tool input
- URLFetch
Output - URLFetch tool output
- URLFetch
Tool - Web page fetching tool
- Wikipedia
Input - Wikipedia tool input
- Wikipedia
Output - Wikipedia tool output
- Wikipedia
Tool - Wikipedia search tool
Enums§
- Skill
Error - Error while loading or parsing a skill bundle.
- Tool
Error - Tool error type.
Traits§
Attribute Macros§
- tool
- The
#[tool]procedural macro.