workflow package

Submodules

workflow.codecad_agent module

class workflow.codecad_agent.CodeExecutionLoop(describer: Describer, coder: Coder, visual_feedback: VisualFeedback, feedback_judge: FeedbackJudge, max_design_iterations=10, max_coding_iterations=5)[source]

Bases: object

run(design_goal: DesignGoal, output_dir: str, max_design_iterations: int = 10, stop_threshold: float = 0.8)[source]
workflow.codecad_agent.init_models(config_path: str, prompts_path: str)[source]

Initialize all models and components required for the code execution loop.

Parameters:
  • config_path (str) – Path to the configuration YAML file or folder.

  • prompts_path (str) – Path to the prompts YAML file or folder.

Returns:

A tuple containing the initialized components:
  • describer: Describer instance

  • coder: Coder instance

  • visual_feedback: VisualFeedback instance

  • feedback_judge: FeedbackJudge instance

Return type:

tuple

workflow.codecad_agent.main()[source]

Main function to run the code execution loop.

workflow.codecad_agent.parse_args()[source]

Parse command-line arguments.

Returns:

Parsed arguments.

Return type:

argparse.Namespace

Module contents