|
Entropic 2.3.8
Local-first agentic inference engine
|
Streaming filter that strips <think>...</think> blocks. More...
#include <cstddef>#include <string>

Go to the source code of this file.
Classes | |
| class | entropic::StreamThinkFilter |
| Streaming filter that removes <think> blocks from output. More... | |
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Typedefs | |
| using | entropic::TokenCallback = void(*)(const char *, size_t, void *) |
| Token callback type matching the C API signature. | |
Streaming filter that strips <think>...</think> blocks.
Wraps a consumer token callback and filters thinking content from the stream. All tokens (including thinking) can optionally be forwarded to a raw log callback. Consumer output is UTF-8 codepoint-aligned — incomplete sequences are buffered across chunks.
Definition in file stream_think_filter.h.