Module: recipe
InfernetRecipe
Bases: TypedDict
Infernet Recipe (see github.com/ritual-net/infernet-recipes)
Source code in src/infernet_cli/recipe.py
RecipeConfig
Bases: TypedDict
Infernet Recipe Configuration
Source code in src/infernet_cli/recipe.py
RecipeInputs
Bases: TypedDict
Infernet Recipe Input Variable
Source code in src/infernet_cli/recipe.py
fill_in_recipe(recipe, inputs=None, skip=False)
Fill-in the recipe inputs and return the configuration
If inputs object is provided, use it to fill in the recipe inputs. Otherwise, prompt the user for inputs interactively via the CLI.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
recipe |
dict[str, Any]
|
The recipe containing the inputs and configuration |
required |
inputs |
Optional[dict[str, Any]]
|
The inputs to fill in the recipe |
None
|
skip |
bool
|
Whether to skip optional inputs |
False
|
Returns:
Name | Type | Description |
---|---|---|
Any |
Any
|
The configuration with the user inputs |