Skip to content

Commit 900cdc9

Browse files
committed
add comment
Signed-off-by: Vladislav Nosivskoy <[email protected]>
1 parent b58973d commit 900cdc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/parsers/src/tool_calling/dsml/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ fn extract_tool_calls(
9999
let mut tool_calls = Vec::new();
100100

101101
// Find all function_calls blocks
102+
// Matches: <|DSML|function_calls> ... </|DSML|function_calls>
103+
// Pattern: (?s) = dot matches newlines
104+
// \s*(.*?)\s* = capture content between start/end tags (non-greedy)
102105
let block_pattern = format!(
103106
r"(?s){}\s*(.*?)\s*{}",
104107
regex::escape(&config.function_calls_start),

0 commit comments

Comments
 (0)