How rllm-org/rllm works
rLLM is a framework for training and evaluating language agents with reinforcement learning. A user supplies an agent flow, task data, and an evaluator; workflow engines run rollouts, the model gateway captures model-call traces, and evaluation produces rewards. Training transforms rollout data for advantage computation and delegates policy updates to configurable backends. The README documents this overall pipeline and highlights harness, sandbox, benchmark, and training-method options. Some capability nodes are based on README claims and the file tree; unsampled source limits the detail of their connections.
Main entry points: workflow.py Workflows · agentflow_engine.py Agent Flow Engine · unified_trainer.py Unified Trainer · unified_workflow_engine.py Workflow Engine
Components 20
Agent Execution
- Agent Harnesses
rllm/harnesses/cli_harness.py - Sandbox Backends
rllm/sandbox/backends - Workflows
rllm/workflows/workflow.py - Workflow Engine
rllm/engine/unified_workflow_engine.py - Agent Flow Engine
rllm/engine/agentflow_engine.py - Rollout Engines
rllm/engine/rollout/rollout_engine.py - Tools and Parsers
rllm/tools/tool_base.py
Trace and Evaluation
- Gateway Lifecycle
rllm/gateway/manager.py - Model Gateway
rllm-model-gateway/src/rllm_model_gateway/proxy.py - Trace Conversion
rllm/engine/trace_converter.py - Episodes and Logging
rllm/utils/episode_logger.py - Evaluation and Rewards
rllm/eval/runner.py
Training
- Training Transforms
rllm/trainer/verl/transform.py - Unified Trainer
rllm/trainer/unified_trainer.py - RL Algorithms
rllm/trainer/algorithms/rl_algo.py - Training Backends
rllm/trainer/backend_protocol.py
Data and Integrations
- CLI
rllm/cli/main.py - Tasks and Benchmarks
rllm/tasks/loader.py
Other components
- User
- Model Provider
Connections 23
- User → CLI: runs commands
README.md - User → Agent Flow Engine: supplies agent
README.md - CLI → Tasks and Benchmarks: selects benchmark
README.md - Tasks and Benchmarks → Workflow Engine: provides tasks
- Agent Harnesses → Workflows: runs within
- Sandbox Backends → Workflows: hosts rollouts
- Workflow Engine → Workflows: executes
rllm/engine/unified_workflow_engine.py - Agent Flow Engine → Workflows: runs flow
rllm/engine/agentflow_engine.py - Workflows → Rollout Engines: requests model output
rllm/workflows/workflow.py - Rollout Engines → Tools and Parsers: uses tool parser
rllm/engine/rollout/rollout_engine.py - Agent Flow Engine → Gateway Lifecycle: starts trace gateway
rllm/engine/agentflow_engine.py - Gateway Lifecycle → Model Gateway: configures service
rllm/gateway/manager.py - Model Provider → Model Gateway: serves model calls
- Model Gateway → Trace Conversion: captures traces
README.md - Trace Conversion → Episodes and Logging: structures episodes
rllm/engine/trace_converter.py - Agent Flow Engine → Episodes and Logging: enriches episode
rllm/engine/agentflow_engine.py - Episodes and Logging → Evaluation and Rewards: provides rollout
- Evaluation and Rewards → Unified Trainer: computes rewards
README.md - Unified Trainer → Workflow Engine: collects rollouts
rllm/trainer/unified_trainer.py - Unified Trainer → Training Transforms: prepares trajectories
rllm/trainer/unified_trainer.py - Training Transforms → RL Algorithms: groups for advantages
README.md - Unified Trainer → Training Backends: delegates updates
README.md - Training Backends → Model Provider: updates model