Overview
Hyperbolic AgentKit uses a flexible tool/action system that allows agents to interact with GPU compute, blockchains, social media, web services, and more. Tools are the bridge between the agent’s reasoning and external systems.Tool Architecture
The framework uses a three-layer tool architecture:Core Concepts
Actions
Actions are the fundamental units of functionality. Each action defines:hyperbolic_agentkit_core/actions/hyperbolic_action.py
Tools
Tools wrap actions for LangChain compatibility:hyperbolic_langchain/tools/hyperbolic_tool.py
Toolkits
Toolkits group related tools together:hyperbolic_langchain/agent_toolkits/hyperbolic_toolkit.py
Available Tool Categories
1. GPU Compute Tools (Hyperbolic)
Manage GPU instances on the Hyperbolic platform.Get Available GPUs
hyperbolic_agentkit_core/actions/get_available_gpus.py
Rent Compute
hyperbolic_agentkit_core/actions/rent_compute.py
SSH Access & Remote Shell
hyperbolic_agentkit_core/actions/ssh_access.py
hyperbolic_agentkit_core/actions/remote_shell.py
Terminate Compute
hyperbolic_agentkit_core/actions/terminate_compute.py
2. Blockchain Tools (Coinbase CDP)
Provided by Coinbase AgentKit:chatbot.py
3. Social Media Tools (Twitter)
Custom Twitter operations:chatbot.py
4. Browser Automation Tools
chatbot.py
5. Knowledge Base Tools
chatbot.py
6. Web Search Tools
chatbot.py
7. Writing Agent Tools
chatbot.py
Creating Custom Tools
Method 1: Simple LangChain Tool
For simple functions without complex schemas:Method 2: HyperbolicAction Pattern
For more complex tools with validation:Method 3: Custom Toolkit
For grouping related tools:Tool Registration
Tools are registered inchatbot.py via the create_agent_tools() function:
chatbot.py
Environment Configuration
Control which tools are available via.env:
.env
Best Practices
Tool Descriptions
Tool Descriptions
Write clear, detailed descriptions that help the LLM understand:
- What the tool does
- When to use it
- What inputs it requires
- What output to expect
- Any important notes or warnings
Input Validation
Input Validation
Use Pydantic schemas for:
- Type validation
- Required vs optional parameters
- Default values
- Field descriptions
Error Handling
Error Handling
- Return descriptive error messages
- Don’t raise exceptions unless critical
- Include troubleshooting hints
- Log errors for debugging
Tool Dependencies
Tool Dependencies
Document and check dependencies:
- API keys required
- Other tools that must run first
- External services needed
- Environment variables
Performance
Performance
- Add timeouts for long-running operations
- Stream large outputs
- Cache results when appropriate
- Paginate API responses
Next Steps
Architecture
Understand the framework architecture
Agents
Learn about agent types and modes
Character Configuration
Configure agent personality
Hyperbolic Integration
Set up GPU compute tools