Tools
Tools extend agent capabilities by providing access to external systems, APIs, and computational resources. Only ReAct agents (react_agent) support tool calling.
We’re actively working on integrating with the Model Context Protocol (MCP) to expand the available tools and enable seamless integration with external services.
Available Tools
tavily_search
Web Search 🔧Search engine optimized for comprehensive, accurate results from the web.Configurable
tavily_extract
Content Extraction 🔧Extracts comprehensive content from web pages based on URLs.Configurable
calculator
CalculatorPerforms basic mathematical calculations safely.
wikipedia_search
Wikipedia SearchSearch Wikipedia and get article summaries on any topic.
arxiv_search
ArXiv SearchSearch academic papers on ArXiv.org across scientific fields.
youtube_search
YouTube SearchSearch YouTube for videos and content.
python_repl
Python REPLExecute Python code in a safe environment.
Configuring Tools
Tools can be added in two ways: simple (just the tool name) or with configuration (for tools that support it).Simple Tool Configuration
Most tools can be added by just specifying their name:Advanced Tool Configuration
Some tools support optional configuration for customization: Configurable Tools:tavily_search- Web search with advanced optionstavily_extract- Content extraction with format options
Tool Configuration Reference
tavily_search Configuration
tavily_search Configuration
Available options:
max_results(integer, default: 5) - Maximum number of search resultsinclude_answer(boolean, default: false) - Include a short answer to the queryinclude_raw_content(string, default: “markdown”) - Include cleaned HTML content (“markdown” or “text”)include_image_descriptions(boolean, default: false) - Include image descriptionscountry(string, optional) - Boost results from specific country (e.g., “US”, “UK”)auto_parameters(boolean, default: false) - Enable automatic parameter configurationtimeout(integer, default: 30) - Request timeout in seconds
tavily_extract Configuration
tavily_extract Configuration
Available options:
format(string, default: “markdown”) - Output format: “markdown” or “text”timeout(integer, default: 30) - Request timeout in seconds
Tool Calling Configuration
Enable or disable tool calling for this agent
Maximum number of reasoning and tool execution cyclesRecommended values:
- Simple tasks: 3-5 iterations
- Research tasks: 5-10 iterations
- Complex analysis: 10-15 iterations
Tool Usage Examples
Web Search and Research
Data Analysis with Calculator
Streaming
Streaming enables real-time delivery of agent responses, tool calls, and reasoning steps to end users.Streaming Configuration
Enable streaming of agent responses
Stream agent text output to users in real-time
Show tool calling events and results to users
Show agent’s internal reasoning and thought process
Streaming Examples
Standard User-Facing Streaming
- ✅ Agent responses (streaming)
- ✅ Tool calls and results
- ❌ Internal reasoning
Development/Debug Mode
- ✅ Agent responses (streaming)
- ✅ Tool calls and results
- ✅ Internal reasoning steps
Background Processing
Streaming Events
When streaming is enabled, the system emits these event types:Text Message Events
Text Message Events
TextMessageStart- Agent begins generating a responseTextMessageContent- Streaming content chunksTextMessageEnd- Response generation complete
Run Events
Run Events
RunStarted- Agent execution beginsRunFinished- Agent execution completes successfullyRunError- Agent execution encounters an error
LLM Events
LLM Events
LLMCallStarted- LLM API call initiatedLLMCallCompleted- LLM call finished (includes token usage)LLMCallError- LLM call failed
Tool Events
Tool Events
Tool execution events showing which tools are called and their results
Knowledge Base Integration
Agents can access knowledge bases to retrieve domain-specific information and documents. Both LLM agents and ReAct agents support knowledge base integration.Available Knowledge Base Types
milvus
Milvus Vector DatabaseProduction-ready vector database with dense vector semantic search and multi-tenancy support.
Additional vector database integrations will be supported in future releases.
Configuration
Add knowledge bases directly to agent configuration:Configuration Reference
Milvus Knowledge Base
Milvus Knowledge Base
Required fields:
name(string) - Instance identifierknowledge_base_type(string) - Must be “milvus”knowledge_base_id(string) - Knowledge base ID for isolation
top_k(integer, default: 10) - Number of results to return (1-1000)search_ef(integer, default: 64) - HNSW search parameter for accuracy (1-512)metric_type(string, default: “COSINE”) - Distance metric: “COSINE”, “L2”, or “IP”offset(integer, default: 0) - Number of results to skip for paginationscore_threshold(float, optional) - Minimum similarity score (0.0-1.0)enable_rerank(boolean, default: false) - Enable result rerankingrerank_model(string, optional) - Reranking model if enabled
LLM Configuration
Fine-tune language model behavior for different use cases.Model Selection
gpt-4o- Latest GPT-4 optimized model (recommended)gpt-4-turbo- Fast GPT-4 variantgpt-3.5-turbo- Faster, more economical option
Temperature Control
Temperature controls the randomness and creativity of responses:| Temperature | Use Case | Example |
|---|---|---|
| 0.0 - 0.3 | Factual, deterministic | Data analysis, fact retrieval |
| 0.4 - 0.7 | Balanced | General conversation, Q&A |
| 0.8 - 1.2 | Creative | Content writing, brainstorming |
| 1.3 - 2.0 | Highly creative | Creative writing, poetry |
Token Limits
- Short responses: 500-1000 tokens
- Standard responses: 1000-2000 tokens
- Long-form content: 2000-4000 tokens
Advanced Capabilities
Multi-Agent Coordination
Supervisor agents coordinate multiple specialized agents:Supervisors can coordinate both LLM agents and ReAct agents, creating hybrid teams with diverse capabilities.
Agent Handoffs
In supervisor architectures, agents can hand off tasks to each other:Capability Combinations
Research + Analysis Agent
Creative Writing Agent
Best Practices
Tool Selection
Test agents with minimal tools first, then add more as needed.
Streaming Configuration
Performance Optimization
System Prompts
Troubleshooting
Agent not using tools
Agent not using tools
Possible causes:
tool_calling.enabledis false- System prompt doesn’t mention tool usage
max_iterationsis too low
Infinite tool calling loops
Infinite tool calling loops
Cause: Agent repeatedly calls tools without reaching a conclusionSolution: Lower
max_iterations and improve system prompt to guide the agent toward conclusions.Streaming not working
Streaming not working
Possible causes:
enable_streamingis falseshow_output_to_useris false- Network/connection issues
Knowledge base not returning results
Knowledge base not returning results
Possible causes:
- Knowledge base not properly configured
enabledis false- Empty or unindexed knowledge base