// Iterate over all start and end tokens and try to extract the content between them
// Iterate over all start and end tokens and try to extract the content between them
letmutjson=trimmed;
// Assumption : One message will not contain different tags for tool calls. Iteration over tags is to support different tags by default for multiple models