Discover and explore top open-source AI tools and projects—updated daily.
Trainable agentic system for optimized planning and tool use
New!
Top 53.0% on SourcePulse
AgentFlow: In-the-Flow Agentic System Optimization
AgentFlow is a trainable, modular agentic framework designed to overcome the scalability and generalization limits of current tool-augmented reasoning approaches. It targets researchers and developers building sophisticated AI agents, offering improved planning, tool use, and long-horizon reasoning capabilities through direct optimization of its planner module.
How It Works
The framework employs a modular system comprising four specialized agents: Planner, Executor, Verifier, and Generator, which coordinate via evolving memory and integrated tools. AgentFlow's core innovation is the Flow-GRPO algorithm, which optimizes the planner agent "in-the-flow" online. This approach is advantageous for tackling long-horizon reasoning tasks with sparse rewards, enhancing tool-calling reliability and generalization beyond single-LLM interleaving methods.
Quick Start & Requirements
bash setup.sh
. Activate the virtual environment with source .venv/bin/activate
. Install parallel
for benchmark experiments: sudo apt-get install parallel
.agentflow/.env
by copying agentflow/.env.template
. Detailed instructions are available in the API Key Setup Guide.python quick_start.py
after setting up API keys.python data/get_train_data.py
, python data/aime24_data.py
) and execution via tmux using train/serve_with_logs.sh
and train/train_with_logs.sh
. Hyperparameters are configured in train/config.yaml
.test_env.md
, benchmark.md
, logs.md
, and llm_engine.md
(relative path assets/doc/llm_engine.md
) are available within the repository structure.Highlighted Details
Maintenance & Community
Core contributors include Zhuofeng Li, Haoxiang Zhang, and Pan Lu, with advisors James Zou, Yejin Choi, and Yu Zhang. A Slack community is available for contributions and discussions. Contact emails are provided for issues and collaborations.
Licensing & Compatibility
The project's license is not explicitly stated in the provided README, which is a critical omission for adoption decisions. The framework supports various LLM engines for its agent modules.
Limitations & Caveats
The setup requires obtaining and configuring multiple API keys, potentially incurring costs. The absence of a clearly stated license poses an adoption blocker. Training involves a multi-step process using tmux and specific dataset preparation.
1 day ago
Inactive