Open Pwuts opened 3 months ago
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
database_schema
compiled_route_id
CodeValidator
route_errors_as_todo
raise_validation_error
CodeValidator.validate_code
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.
codex.develop
Making
database_schema
andcompiled_route_id
optional inCodeValidator
, androute_errors_as_todo
,raise_validation_error
inCodeValidator.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-L300A 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
.