Agents is an open-source framework developed by aiwaves-cn, aimed at building data-centric, self-evolving autonomous language agents. On June 25, 2024, the project released a major update, Agents 2.0, adding support for agent learning and evaluation.
Main Capabilities The core of Agents 2.0 is "Agent Symbolic Learning," a systematic framework for training language agents, inspired by the connectionist learning process of training neural networks. The framework draws an analogy between language agents and neural networks: agent pipelines correspond to the computational graphs of neural networks, nodes in the pipeline correspond to network layers, and the prompts and tools of nodes correspond to the weights of layers. Based on this analogy, the framework implements the main components of connectionist learning, including backpropagation and gradient-based weight updates, and adopts language-based losses, gradients, and weights in agent training.
In terms of specific implementation, the framework implements loss functions, backpropagation, and weight optimizers for agent training, along with carefully designed prompt pipelines. For each training sample, the framework first performs a "forward pass" (agent execution) and stores the input, output, prompts, and tool usage of each node in a "trajectory." It then uses a prompt-based loss function to evaluate the result, obtaining a "language loss." Subsequently, the language loss is backpropagated along the trajectory from the last node to the first node, generating textual analysis and reflection for the symbolic components within each node, called "language gradients." Finally, based on the language gradients, through another carefully designed prompt, all symbolic components in each node are updated, as well as the computational graph composed of nodes and their connections. This method also naturally supports optimizing multi-agent systems, for example by treating nodes as different agents, or allowing multiple agents to execute actions within one node.
Usage The framework provides two installation methods: installation from a Git repository branch and local development installation. For specific installation commands, refer to the official documentation. The documentation also includes workflow diagrams, an overview, installation guide, and citation information.
Applicable Scenarios Agents is suitable for research and development of autonomous language agents, especially scenarios requiring agent self-evolution, training, and evaluation. It supports optimization of multi-agent systems.
Limitations Facts regarding supported platforms, charging models, prices, detailed usage steps, and results are not yet provided in this material.