ooai_llm.cli.recipes¶
Copy/paste CLI and Python recipes for common ooai-llm workflows.
Attributes¶
Classes¶
One recipe section for terminal and package usage. |
Functions¶
|
Return all built-in CLI/package recipe sections. |
|
Return every section or one named recipe section. |
|
Render recipes as plain text or Markdown. |
|
Render recipes in the requested CLI output format. |
Module Contents¶
- ooai_llm.cli.recipes.RECIPE_TOPICS: tuple[str, Ellipsis] = ('all', 'cheapest', 'coding', 'rich', 'suites', 'profiles', 'runtime', 'tui')[source]¶
- class ooai_llm.cli.recipes.CLIRecipe(/, **data: Any)[source]¶
Bases:
pydantic.BaseModelOne recipe section for terminal and package usage.
- ooai_llm.cli.recipes.recipe_sections() dict[str, CLIRecipe][source]¶
Return all built-in CLI/package recipe sections.
- ooai_llm.cli.recipes.selected_recipe_sections(topic: RecipeTopic | str) dict[str, CLIRecipe][source]¶
Return every section or one named recipe section.
- ooai_llm.cli.recipes.render_recipes_text(sections: dict[str, CLIRecipe], *, markdown: bool = False) str[source]¶
Render recipes as plain text or Markdown.
- ooai_llm.cli.recipes.render_recipes(sections: dict[str, CLIRecipe], *, format: RecipeFormat = 'text') str[source]¶
Render recipes in the requested CLI output format.