OpenHands
OpenHands copied to clipboard
style: Refactor get_prompt function for readability and maintainability
Optimize the get_prompt function by using a dictionary to map ActionType to hints, thus avoiding repetitions and making the code more readable and maintainable.
Thanks! The hint logic is definitely cleaner
@Einswilli just a few lint issues
@Einswilli can you take a look at the lint issues?
Sorry this is such a whack-a-mole 🙃 feel free to ping me in slack if you need another look
You can also run the pre-commit command from the github action to lint it on your local machine