View source code here: GitHub
Removes a fenced code block (triple backticks) and its language specifier if present.
Returns the cleaned text and the detected language (or None if no language was found).
| Field | Type | Description |
|---|---|---|
| string | No description |
| Field | Type | Description |
|---|---|---|
| status | typing.Literal['OK', 'ERROR'] | Status of the request. |
| language | typing.Optional[str] | The language of the code block, if specified |
| result | typing.Optional[str] | The contents of the string without a code block. |
| error_message | typing.Optional[str] | Error message if the command failed. |
© 2025 South Patron LLC. All rights reserved.
AI everywhere.