Skip to main content
Version: Next

PydanticAiHtmlDistiller

Interface for HTML distillers.

A distiller reduces raw HTML to a compact representation that an LLM can read cheaply. The built-in distillers are PydanticAiCleanHtmlDistiller and PydanticAiSkeletonDistiller.

Index

Methods

distill

  • distill(html): str
  • Convert raw HTML to a compact representation suitable for an LLM.


    Parameters

    • html: str

    Returns str

get_prompt_notes

  • get_prompt_notes(): str | None
  • Return a short description of the produced representation, or None.


    Returns str | None

Page Options