stopSequences constant

List<String> const stopSequences

Stop sequences a caller passes to generation.

<|im_end|> ends every turn (it is also the model's EOS). A tool-call turn emits <|tool_call_start|>…<|tool_call_end|> and then <|im_end|>, so stopping here captures the whole call block intact.

Implementation

static const List<String> stopSequences = <String>[imEnd];