iterative_recipe_gen
Iteratively draft, validate, and correct Snowfakery recipes until a valid version is produced, using the language model to fix errors.
Instructions
Create a recipe iteratively with validation.
This tool uses the LLM (via sampling) to draft a Snowfakery recipe, validates it, and if it fails, asks the LLM to fix it. Returns the final valid recipe or the last attempt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| max_iterations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |