Skip to main content

Module text

Module text 

Source
Expand description

Clean text extraction from LLM responses.

Provides parse_text for extracting clean prose from LLM output, stripping think blocks and common boilerplate prefixes.

Functionsยง

parse_text
Clean an LLM response for use as plain text.
parse_text_with_trace
Clean an LLM response as plain text with diagnostic trace.