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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"goal": "<goal>"
},
"name": "iterative_recipe_gen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| max_iterations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |