|
Entropic 2.3.8
Local-first agentic inference engine
|
Constitutional validation pipeline implementation. More...
#include <entropic/core/constitutional_validator.h>#include <entropic/core/hook_registry.h>#include <entropic/types/logging.h>#include <cstdlib>#include <cstring>
Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| static std::string | entropic::strip_think_blocks (const std::string &content) |
Strip <think>...</think> blocks from content. | |
| static bool | entropic::is_pure_tool_call (const std::string &content) |
| Check if content is a pure tool call with no prose. | |
| static std::string | entropic::json_escape (const std::string &s) |
| Escape a string for JSON embedding. | |
Constitutional validation pipeline implementation.
Post-generation constitutional compliance validation using grammar-constrained critique and automatic revision.
Definition in file constitutional_validator.cpp.