Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
stream_think_filter.h File Reference

Streaming filter that strips <think>...</think> blocks. More...

#include <cstddef>
#include <string>
Include dependency graph for stream_think_filter.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

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.

Version
2.0.2

Definition in file stream_think_filter.h.