AgentFlow is a tool-integrated agentic framework with Planner, Executor, Verifier, and Generator modules, trained in the multi-turn loop via Flow-GRPO.
Overview
AgentFlow targets complex reasoning where a single model alternates thoughts and tool calls across long horizons. It splits work across four modules—Planner, Executor, Verifier, and Generator—that share evolving memory and a toolset over multiple turns instead of one monolithic policy.
Integrated tools named in the materials include base generators, Python execution, Google search, Wikipedia search, web search, and related utilities. The Planner policy can be optimized online inside the live multi-turn loop using Flow-based Group Refined Policy Optimization, which assigns sparse trajectory-level rewards across turns via group-normalized advantages.
Users run inference through quick-start scripts after configuring API keys for judges, search, and optional local or hosted LLM backends, including vLLM-served models. Training mixes datasets such as Natural Questions for agentic search and DeepMath for math reasoning, with hyperparameters centralized in a training config file and logging for monitoring runs.
Benchmark workflows evaluate search, agentic, math, and science task folders, writing datasets, per-problem logs, and scored outputs. Published results report gains over baselines on multiple benchmarks when using a roughly 7B-scale backbone, with analyses on planning quality, tool reliability, and scaling with model size and turn count.
Key features
- Four-module planner-executor-verifier-generator design
- Multi-turn shared memory and toolkit
- Flow-GRPO online planner optimization
- Bundled search and code execution tools
- Configurable LLM engines per module
- Benchmark harness with detailed run logs
- Mixed search and math training data
- vLLM deployment for trained planners
Use cases
- Long-horizon agentic search benchmarks
- Mathematical reasoning with tool use
- Training planner policies with sparse rewards
- Multi-benchmark agent evaluation
- Custom LLM backends per agent role