TOOL_REGISTRY and can be easily integrated into your agents.
Available Tools
Code Execution
Code Interpreter
Execute Python code in a sandboxed Docker environment with support for data analysis and visualization.
Python Executor
Direct Python code execution without Docker isolation (use with caution).
Document Processing
Doc Parser
Parse and extract content from various document formats with chunking support.
Simple Doc Parser
Basic document parsing without chunking - extracts raw content from files.
Retrieval (RAG)
Retrieve relevant content from documents using RAG techniques with multiple search strategies.
Web & Search
Web Search
Search the internet using Serper API integration.
Web Extractor
Extract and parse content from web pages.
Image Search
Search for images on the internet.
Image Processing
Image Generation
Generate images from text descriptions using LLM-based image generation.
Image Zoom (Qwen3VL)
Zoom into specific regions of images using Qwen3VL capabilities.
Search Tools
Vector Search
Semantic search using vector embeddings.
Keyword Search
BM25-based keyword search for document retrieval.
Hybrid Search
Combined vector and keyword search for improved retrieval.
Front Page Search
Search based on document front matter and metadata.
Storage & Utilities
Storage
Persistent key-value storage for caching and data management.
MCP Manager
Model Context Protocol integration for external tool connectivity.
Extract Doc Vocabulary
Extract vocabulary and key terms from documents.
Amap Weather
Get weather information using Amap API (Chinese service).
Tool Registry
All tools are registered in theTOOL_REGISTRY dictionary, which maps tool names to their implementation classes:
Using Tools with Agents
Tools can be integrated into agents by specifying their names in thefunction_list parameter:
Creating Custom Tools
You can create custom tools by extending theBaseTool class and registering them:
Tool Base Classes
BaseTool
The base class for all tools. Provides:- Parameter validation
- JSON schema support
- Abstract
call()method for implementation
BaseToolWithFileAccess
ExtendsBaseTool with file handling capabilities:
- Automatic working directory management
- Remote file downloading
- File caching
Next Steps
Code Interpreter
Learn about executing Python code safely
Retrieval
Implement RAG for document Q&A
Doc Parser
Parse and chunk documents
Web Search
Search the web from your agents