You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
Sometimes, when running code snippets, the returned output is not actual code but plain text (e.g. code with explanations or other remarks). This could be frustrating for users who expect the output to be valid code they can use for further development or when piping to another program.
Describe the solution you'd like
Create a validator that checks if the returned output is valid code. The validator should parse the output and flag it if it's not actual code. This could be done with additional prompts and a possible argument that attempts to check.
Describe alternatives you've considered
The only alternative is to rely on users to manually check if the returned output is actual code. However, this doesn't allow us to easily pipe or chain commands which is the ultimate goal of the program.