Entropic 2.11.1
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::ThinkMarkers Struct Reference

The reasoning-block delimiters a model family emits (gh#108). More...

#include <entropic/inference/adapters/adapter_base.h>

Public Attributes

std::string open = "<think>"
 Opening delimiter.
 
std::string close = "</think>"
 Closing delimiter.
 

Detailed Description

The reasoning-block delimiters a model family emits (gh#108).

Thinking format is a property of the chat template, not of the transport: Qwen/Nemotron wrap reasoning in <think>…</think>, Gemma-4 QAT uses <|channel>…<channel|>. Declaring the pair once per adapter keeps the buffered strip (ChatAdapter::strip_think_blocks) and the live stream filter (StreamThinkFilter) from drifting apart — before v2.10.3 they were two independent hardcoded literals and gemma4 matched neither.

Version
2.10.3

Definition at line 61 of file adapter_base.h.

Member Data Documentation

◆ close

std::string entropic::ThinkMarkers::close = "</think>"

Closing delimiter.

Definition at line 63 of file adapter_base.h.

◆ open

std::string entropic::ThinkMarkers::open = "<think>"

Opening delimiter.

Definition at line 62 of file adapter_base.h.


The documentation for this struct was generated from the following file: