QuantaLogic: ReAct AI Agent Framework
What is QuantaLogic?
QuantaLogic is a Python framework that helps you build smart AI agents that can think and act. Imagine having a helpful assistant that not only understands what you want but can actually do it - that's what QuantaLogic enables.
Using the ReAct (Reasoning & Action) pattern, our agents:
- 🧠 Understand
- Process your instructions in plain language
-
Analyze context and requirements
-
💭 Think
- Plan the best approach
- Break down complex problems
-
Consider different solutions
-
⚡ Act
- Execute planned actions
- Use specialized tools
-
Write and modify code
-
📚 Learn
- Analyze results
- Adapt strategies
- Improve future actions
Why Choose QuantaLogic?
- Smart by Design: Built on the ReAct pattern that combines thinking with doing
- Works with Your Favorite AI: Use OpenAI, Anthropic, DeepSeek, or any other LLM
- Powerful Tools: Built-in tools for coding, file handling, and more
- Secure by Default: Sandboxed execution environment for safety
- See What's Happening: Real-time monitoring of your agent's thoughts and actions
- Memory That Matters: Intelligent context management for better results
Core Concepts
The Agent
- Understands natural language instructions
- Plans and executes complex tasks
- Uses specialized tools effectively
- Learns and adapts from results
The Tool System
- Secure sandboxed execution
- Code generation and execution
- File and data manipulation
- Information search and analysis
Memory Management
- Maintains conversation context
- Tracks actions and results
- Optimizes decision making
- Preserves important task information
Project Structure
The QuantaLogic framework is organized into the following structure:
Key Components
- Agent: Core reasoning and execution engine
- Tools: Specialized modules for different tasks
- Python execution
- Node.js execution
- LLM interactions
- File operations
- Search capabilities
- Server: Web interface and API
- Examples: Ready-to-use code samples
- Tests: Comprehensive test suite
🚀 Quick Examples
🖥️ Using the CLI
Available modes:
- code
: Coding-focused agent (default)
- basic
: General-purpose agent
- interpreter
: Interactive code execution
- full
: Full-featured agent
- code-basic
: Basic coding agent
- search
: Web search capabilities
- search-full
: Full search capabilities
🐍 Python SDK Examples
Basic Usage
Event Monitoring
✨ Key Features
- 🌐 Universal LLM Support: Integration with OpenAI, Anthropic, LM Studio, Bedrock, Ollama, DeepSeek V3, via LiteLLM
- 🔒 Secure Tool System: Docker-based code execution and file manipulation tools
- 📊 Real-time Monitoring: Web interface with SSE-based event visualization
- 🧠 Memory Management: Intelligent context handling and optimization
- 🏢 Enterprise Ready: Comprehensive logging, error handling, and validation system
💡 Real-World Use Cases
- 💻 Code Generation: Write, refactor, and debug code
- 📊 Data Analysis: Process and analyze data with natural language commands
- 🤖 Task Automation: Automate repetitive tasks with intelligent workflows
- 🔍 Information Retrieval: Search and summarize information from various sources
Getting Started
Quick Install
Bash | |
---|---|
Basic Example
Here's a minimal example to create your first QuantaLogic agent:
Key Steps to Build an Agent
-
Install Dependencies
-
Create Your Tools
- Inherit from the
Tool
base class - Define tool properties (name, description, arguments)
- Implement the
execute
method -
Add clear docstrings and type hints
-
Initialize the Agent
-
Run Your Agent
Python
Best Practices
- Start simple, add complexity as needed
- Test tools individually before using with agent
- Use descriptive names for tools and parameters
- Handle errors explicitly in your tools
- Keep tool functions focused and small
Architecture Overview
graph TD
A[User Input] --> B[Agent]
B --> C{ReAct Loop}
C -->|Think| D[Reasoning]
C -->|Act| E[Tool System]
D --> C
E --> C
C -->|Complete| F[Result]
Ready to Start?
- Read the Core Concepts
- Follow our Tutorials
- Check out the API Reference
- Learn Best Practices
Building the future of AI agents, one task at a time.