Creating Agents
Hive agents are goal-driven systems that combine nodes, edges, and tools to accomplish specific tasks. This guide walks you through creating a complete agent from scratch.Agent Structure
Every Hive agent consists of:- Goal - Defines what success looks like
- Nodes - Processing units that execute tasks
- Edges - Control flow between nodes
- Tools - Integrations for external actions
- Configuration - Model settings and metadata
Quick Start
Here’s a minimal agent structure:Creating a Multi-Node Agent
Here’s a real example from the framework - a research agent with multiple phases:Connecting Nodes with Edges
Edges define how execution flows between nodes:Agent Class Implementation
Wrap your agent in a class for runtime management:Agent File Structure
Organize your agent as a Python package:Using the MCP Server
The framework provides an MCP server for interactive agent building:- Creating sessions
- Defining goals
- Adding nodes and edges
- Validating graphs
- Exporting agents
See the MCP Server Guide for detailed usage.
Next Steps
Defining Goals
Learn how to define success criteria and constraints
Node Configuration
Configure node behavior and parameters
Tools & Integrations
Add external tools and MCP servers
Testing
Write and run tests for your agents