AI Tools
Create AI tools that enable function calling, letting AI models access real-time data, perform calculations, and interact with your systems.
π Table of Contents
π― What are AI Tools?
User: "What's the weather in Boston?"
β
AI: Determines it needs weather data β Calls your weather tool
β
Your Tool: Fetches actual weather from API β Returns "72Β°F, Sunny"
β
AI: "The weather in Boston is 72Β°F and sunny."π Tool Execution Flow
ποΈ Tool Architecture
π§ Creating Tools
Basic Tool
Using Tools
π Tool Definition
The aiTool() Function
aiTool() FunctionDescribing Parameters
Multiple Parameters
βοΈ Tool Properties
π‘ Common Tool Patterns
Database Query Tool
API Integration Tool
Calculator Tool
File Operations Tool
Built-In Web Search Tool (v3.2+)
Built-In Console & Logging Tools (v4.0+)
print@bxai
print@bxailog@bxai
log@bxaiParameter
Type
Default
Description
sendEmail@bxai
sendEmail@bxaiParameter
Type
Default
Description
π Multiple Tools
Multi-Tool Orchestration
Tools with Agents
Tools with Models
Tool Execution Flow
Handling Tool Errors
Advanced: Custom Schema
Best Practices
1. Clear Descriptions
2. Validate Input
3. Return Structured Data
4. Handle Missing Data
5. Keep Tools Focused
π¦ Tool Registry
Provider Support
Provider
Tool Support
Notes
Next Steps
Last updated