Prompt

Fluent builder for structured LLM prompts with system text, XML context sections, and a question.

Usage

Source

Prompt()

Chain .system(), .context(tag, content), and .ask() to build prompts. str() renders the full prompt with XML-wrapped context blocks.

Parameter Attributes

system_text: str = ""
contexts: tuple[tuple[str, str], …] = ()
ask_text: str = ""