RL Agent Example
This example shows a reinforcement learning agent configuration with multiple config groups.
Based on the test case test_proto_cli.py::test_rl_agent_help:
CLI Help Output
Running python train_rl.py --help shows:
Usage Examples
Run with defaults:
Change environment:
Adjust agent hyperparameters:
Full customization:
Key Features Demonstrated
- Modular Configuration: Separate config groups for Environment and Agent
- Singleton Pattern:
@proto.prefixcreates global singletons - Automatic Grouping: CLI help automatically groups options by prefix
- Inline Documentation: Comments become help text
- Type Safety: Full type annotations for all parameters
Next Steps
- See Basic Usage for simpler examples
- Check ML Training for another complete example
- Read
Prefixes Guidefor more on@proto.prefix