Agents
Symbolic learning framework for training language agents
Agents is a systematic framework for training language agents, inspired by neural network learning. It implements loss function, back-propagation, and weight optimization for agent training, supporting both single and multi-agent systems.
Details
- Free
- Open Source
Agents: Symbolic Learning Framework for Language Agents
Overview
Agents is an innovative framework for training language agents, drawing inspiration from the connectionist learning procedures used in neural networks. This systematic approach bridges the gap between traditional AI agent systems and neural network architectures, enabling more efficient and effective training of language-based AI agents.
Key Features
Analogous Structure to Neural Networks
- Agent Pipeline: Corresponds to the computational graph of a neural network
- Nodes: Equivalent to layers in a neural network
- Prompts and Tools: Act as the weights of a layer
Core Components
- Loss Function: Implemented using prompt-based evaluation
- Back-Propagation: Generates textual analyses and reflections for each node
- Weight Optimizer: Updates symbolic components based on language gradients
Training Process
- Forward Pass: Execute agent actions and store inputs, outputs, prompts, and tool usage
- Loss Evaluation: Use prompt-based loss function to assess outcomes
- Back-Propagation: Generate language gradients through textual analysis
- Update: Modify symbolic components and computational graph structure
Multi-Agent Support
Agents naturally extends to multi-agent systems by:
- Treating nodes as different agents
- Allowing multiple agents to take actions within a single node
Use Cases and Demonstrations
The framework showcases its versatility through various expertly crafted scenarios:
- NLP Classroom: Interactive communication between professor and students
- Prisoner's Dilemma: Classic game theory scenario with rational agents
- Software Design: Collaborative code generation with writer, tester, and reviewer
- Database Administrator (DBA): System anomaly detection and diagnosis
- Text Evaluation (ChatEval): Multi-agent referee team for assessing text quality
- Pokemon: Interactive game world with multiple characters (available in release-0.1)
Benefits
- Enhances training efficiency for language-based AI agents
- Provides a structured approach to agent learning and optimization
- Supports both single-agent and multi-agent scenarios
- Enables complex, interactive simulations for various domains
Getting Started
To explore the capabilities of Agents, users can run the provided demo scenarios using the AgentVerse command-line interface. Each scenario offers unique insights into the framework's application in different contexts.
For developers and researchers, Agents opens up new possibilities in AI agent training, combining the strengths of symbolic AI with the learning capabilities of neural networks. This innovative approach has the potential to advance the field of AI agents, leading to more sophisticated and adaptable language-based AI systems.
OneReach IDW
Enterprise platform for building and orchestrating AI agents that automate complex workflows
AutoGPT
Build and deploy custom AI agents for task automation
BabyAGI
AI-driven autonomous task management system
AgentGPT
Deploy custom AI agents for autonomous goal achievement