Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

clean_triple_backticks

Function
This function is defined in the parse_utils module.
Clean triple backticks from a string (common in LLM outputs) Removes markdown code block markers like or

Signature

def clean_triple_backticks(text: &str) -> String

Parameters

text
&str
required
No description available.

Returns

Returns
String
The result of the operation.

Uses

  • trim
  • starts_with
  • line
  • find
  • unwrap_or
  • trim_start
  • rfind

Source

View on GitHub

praisonai/src/parity/parse_utils.rs at line 220