Method ExtractBetween
ExtractBetween(string, string, string)
Extracts content between markers in the model output.
protected static string ExtractBetween(string output, string startMarker, string endMarker = null)
Parameters
outputstringThe model output.
startMarkerstringThe start marker.
endMarkerstringThe end marker, or
nullto extract to the end.
Returns
- string
The extracted content, or
nullif not found.