Files
factorio-learning-environment/tests
kiankyars 9ff49a02c5
Some checks failed
Lint and Format / lint (push) Has been cancelled
speed => set_speed (#304)
* feat: Add modular system prompt architecture

Create flexible component-based system prompt generation allowing
agent designs to customize prompts based on specific needs.

Key Features:
• SystemPromptBuilder for flexible prompt composition
• Component-based architecture (task, stats, constraints, patterns)
• Agent-specific optimizations (minimal 100 chars to comprehensive)
• Separation of task logic from prompt generation
• Backward compatibility with existing systems

Components:
- TaskDefinitionComponent: Task-specific instructions
- ProductionStatisticsComponent: Crafting/production rates
- ResponseFormatComponent: Different formats (Gym, MCTS, custom)
- MultiAgentComponent: Coordination instructions when needed
- ImplementationPatternsComponent: Code examples
- ConstraintsComponent: Behavioral rules and limitations
- APIReferenceComponent: Method docs (full or summary)

Changes:
- Enhanced ThroughputTask with build_system_prompt()
- Enhanced FactorioInstance with get_api_documentation()
- New fle.env.system_prompt package with builders and examples

Addresses need for customizable system prompts based on agent design,
similar to how observations can be tailored per agent type.

* gpt-5

* set_speed

* from tests

* set_speed
2025-08-14 11:09:25 -07:00
..
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00
2025-08-14 11:09:25 -07:00