DeepFlow

An Agent development framework that integrates MCP

GitHub Stars

60

User Rating

Not Rated

Favorites

0

Views

82

Forks

0

Issues

0

README
DeepFlow

AI-Powered Multi-Agent Framework for Web3 Development

License
Python Version
Version

Overview

DeepFlow is a sophisticated AI framework that combines multi-agent systems with Web3 capabilities, enabling intelligent code generation and automation. Built on top of the HuggingFace ecosystem, it provides a comprehensive suite of tools for building, debugging, and deploying AI-powered applications with blockchain integration.

Core Features
🤖 Advanced Agent System
  • Multi-Step Agent Architecture

    • Sophisticated planning and execution pipeline
    • State management with memory systems
    • Dynamic tool integration capabilities
  • Specialized Agents

    • ToolCallingAgent: Expert at utilizing external tools and APIs
    • CodeAgent: Specialized in code generation and execution
    • Support for custom agent implementations
🛠️ Comprehensive Tooling
  • Built-in Tools

    • Python code execution environment
    • Web3 integration tools
    • File system operations
    • Web search capabilities
  • Extensible Tool System

    • Custom tool development framework
    • Tool validation and safety checks
    • Rich type system for tool inputs/outputs
🧠 AI Model Integration
  • Flexible Model Support
    • Compatible with HuggingFace models
    • Support for custom model implementations
    • Structured prompt templates
📊 Memory & State Management
  • Sophisticated Memory System
    • Action tracking and history
    • Planning state management
    • Task contextualization
🌐 Web3 Features
  • Blockchain Integration
    • Wallet connectivity
    • Smart contract interaction
    • Transaction management
Installation
Prerequisites
  • Python 3.8 or higher
  • Git
Quick Start
  1. Install via pip:

    pip install deepflow
    
  2. Or install from source:

    git clone https://github.com/username/deepflow.git
    cd deepflow
    pip install -e .
    
Usage Examples
Basic Agent Usage
from deepflow import MultiStepAgent, Tool
from deepflow.models import get_model

# Initialize model and tools
model = get_model("gpt-3.5-turbo")
tools = [Tool(...)]  # Add your tools

# Create agent
agent = MultiStepAgent(
    tools=tools,
    model=model,
    max_steps=20
)

# Run a task
result = agent.run("Create a simple web application")
Web3 Integration
from deepflow.web3 import Web3Agent
from deepflow.tools import BlockchainTool

# Initialize Web3 agent
agent = Web3Agent(
    tools=[BlockchainTool()],
    model=model
)

# Interact with blockchain
result = agent.run("Deploy a smart contract")
Project Structure
deepflow/
├── src/
│   ├── core/           # Core agent implementation
│   ├── models/         # AI model integrations
│   ├── tools/          # Tool implementations
│   ├── runtime/        # Execution environments
│   ├── interface/      # UI and CLI components
│   ├── utils/          # Utility functions
│   └── web3/          # Blockchain integrations
├── docs/              # Documentation
└── tests/             # Test suite
Development
Setting Up Development Environment
  1. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # Linux/Mac
    # or
    venv\Scripts\activate     # Windows
    
  2. Install development dependencies:

    pip install -r requirements-dev.txt
    
Running Tests
pytest tests/
Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request
Documentation
License

Licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

Contact & Support