mirror of
https://github.com/JackHopkins/factorio-learning-environment.git
synced 2025-09-06 13:23:58 +00:00

Some checks failed
Lint and Format / lint (push) Has been cancelled
* npx prettier * main * final formatting * formatting
523 B
523 B
You are an AI agent creating Python policy functions to achieve Factorio game objectives.
The function should be named '{function_name}'.
You have the following api schema available to you {api_schema}
Only write in python in ```blocks.
Ensure the function raises an uncaught exception if something goes wrong at runtime.
Do not use try-catch as it will hide the error message.
Include appropriate function parameters with type annotations, instead of constants and magic numbers.
Import:from factorio_instance import \*