Skip to content

utils

LLMOutput

Bases: TypedDict

A type for the output of an LLM.

Source code in src/distilabel/llm/utils.py
class LLMOutput(TypedDict):
    """A type for the output of an LLM."""

    model_name: str
    prompt_used: Any
    raw_output: Any
    parsed_output: Optional[Any]