ooai_llm.cli.recipes

Copy/paste CLI and Python recipes for common ooai-llm workflows.

Attributes

Classes

CLIRecipe

One recipe section for terminal and package usage.

Functions

recipe_sections(→ dict[str, CLIRecipe])

Return all built-in CLI/package recipe sections.

selected_recipe_sections(→ dict[str, CLIRecipe])

Return every section or one named recipe section.

render_recipes_text(→ str)

Render recipes as plain text or Markdown.

render_recipes(→ str)

Render recipes in the requested CLI output format.

Module Contents

ooai_llm.cli.recipes.RecipeTopic[source]
ooai_llm.cli.recipes.RecipeFormat[source]
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.BaseModel

One recipe section for terminal and package usage.

title: str[source]
summary: str[source]
commands: list[str] = None[source]
python: str = ''[source]
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.