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
- 工具扩展:HTTP / File / SQL / ComputerUse
- sandbox
- Code Interpreter Sandbox for secure 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 网页搜索工具
- Math
Input - Math tool input parameters.
- Math
Output - Math tool output result.
- PythonREPL
Input - Python REPL 工具输入
- PythonREPL
Output - Python REPL 工具输出
- PythonREPL
Tool - Python 代码执行工具
- Search
Input - 搜索工具输入
- Search
Output - 搜索工具输出
- Simple
Math Tool - Advanced math tool for agents.
- URLFetch
Input - URLFetch 工具输入
- URLFetch
Output - URLFetch 工具输出
- URLFetch
Tool - 网页抓取工具
- Wikipedia
Input - Wikipedia 工具输入
- Wikipedia
Output - Wikipedia 工具输出
- Wikipedia
Tool - Wikipedia 搜索工具
Enums§
- Tool
Error - Tool error type.