mirror of
https://github.com/JackHopkins/factorio-learning-environment.git
synced 2025-09-06 21:48:51 +00:00

Some checks failed
Lint and Format / lint (push) Has been cancelled
* 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