Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
constitutional_validator.cpp File Reference

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>
Include dependency graph for constitutional_validator.cpp:

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.
 

Detailed Description

Constitutional validation pipeline implementation.

Post-generation constitutional compliance validation using grammar-constrained critique and automatic revision.

Version
2.0.7

Definition in file constitutional_validator.cpp.