main
txt 46 lines 1.54 KB
Raw
1 # auto (from_token_zero)
2 sequence
3 tag `` text `</think>`
4 triggered_tags [`<|tool_calls_section_begin|>`] excluding [`<think>`, `</think>`, `<|tool_call_begin|>`]
5 tag `<|tool_calls_section_begin|>` .. `<|tool_calls_section_end|>`
6 tags_with_separator `` at_least_one
7 tag `<|tool_call_begin|>functions.get_weather:` .. `<|tool_call_end|>`
8 sequence
9 /\d+/
10 `<|tool_call_argument_begin|>`
11 json({ location: string })
12 tag `<|tool_call_begin|>functions.add:` .. `<|tool_call_end|>`
13 sequence
14 /\d+/
15 `<|tool_call_argument_begin|>`
16 json({ y: number, x: number, items: string[] })
17
18 # required (from_token_zero)
19 sequence
20 tag `` text `</think>`
21 sequence
22 `<|tool_calls_section_begin|>`
23 tags_with_separator `` at_least_one
24 tag `<|tool_call_begin|>functions.get_weather:` .. `<|tool_call_end|>`
25 sequence
26 /\d+/
27 `<|tool_call_argument_begin|>`
28 json({ location: string })
29 tag `<|tool_call_begin|>functions.add:` .. `<|tool_call_end|>`
30 sequence
31 /\d+/
32 `<|tool_call_argument_begin|>`
33 json({ y: number, x: number, items: string[] })
34 `<|tool_calls_section_end|>`
35
36 # named (from_token_zero)
37 sequence
38 tag `` text `</think>`
39 sequence
40 `<|tool_calls_section_begin|>`
41 tag `<|tool_call_begin|>functions.get_weather:` .. `<|tool_call_end|>`
42 sequence
43 /\d+/
44 `<|tool_call_argument_begin|>`
45 json({ location: string })
46 `<|tool_calls_section_end|>`