Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CodeValidator usable as standalone validator #303

Open
Pwuts opened this issue Jul 2, 2024 · 0 comments
Open

Make CodeValidator usable as standalone validator #303

Pwuts opened this issue Jul 2, 2024 · 0 comments

Comments

@Pwuts
Copy link
Member

Pwuts commented Jul 2, 2024

Making database_schema and compiled_route_id optional in CodeValidator, and route_errors_as_todo, raise_validation_error in CodeValidator.validate_code, would allow using it as a stand-alone code validation module. Like this:
https://github.com/Significant-Gravitas/AutoGPT/blob/7f6b7d6d7e5fd92c8816e7c39912c5a72b8e93c2/autogpt/autogpt/agents/prompt_strategies/code_flow.py#L297-L300

A stripped-down version is currently included here: forge/utils/function
but it would be much better for maintainability if we could just import from codex.develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant