stopSequences constant

List<String> const stopSequences

Stop sequences a caller passes to generation.

<turn|> ends a plain answer; <|tool_response> is the model's cue that it has finished emitting calls and wants results — stopping there (rather than at <tool_call|>) keeps any number of consecutive tool calls intact. The client decides "are there calls?" by scanning the captured text for toolCallOpen.

Implementation

static const List<String> stopSequences = <String>[
  turnClose,
  toolResponseOpen,
];