API ReferenceΒΆ

prompt_recipe_smith.PromptTemplate(template)

A fixed prompt form with named variables.

prompt_recipe_smith.PromptRecipe(name, ...)

A reusable conditional prompt-building procedure.

prompt_recipe_smith.PromptBranch(name, ...)

One simple conditional path in a prompt recipe.

prompt_recipe_smith.PromptQuestion(key, text)

One clarification question asked before rendering a final prompt.

prompt_recipe_smith.PromptResult(prompt, ...)

The result of applying a recipe to user input.

prompt_recipe_smith.PromptSession(...[, ...])

One prompt-building interaction.

prompt_recipe_smith.PromptBuilder([provider])

Engine that applies prompt recipes.

prompt_recipe_smith.session.PromptSessionRunner(...)

Runs one prompt-building session.

prompt_recipe_smith.recipes.clarify_idea_recipe()

prompt_recipe_smith.output.to_plain_text(result)

prompt_recipe_smith.output.to_json(result)