Clean Triple Backticks • AI Agent SDK

clean_triple_backticks: Remove triple backticks and surrounding json fences from a string.

clean_triple_backticks

Function

</div>

This function is defined in the main module.

Remove triple backticks and surrounding json fences from a string.

Signature

python
def clean_triple_backticks(text: str) -> str

Parameters

ParamField str

No description available.

Returns

ResponseField str

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/main.py at line 715