|
Entropic 2.3.8
Local-first agentic inference engine
|
Response generation implementation. More...
#include <entropic/core/response_generator.h>#include <entropic/mcp/utf8_sanitize.h>#include <entropic/types/error.h>#include <entropic/types/logging.h>#include <cstring>#include <functional>#include <unordered_map>
Go to the source code of this file.
Classes | |
| struct | entropic::StreamAccumulator |
| Context passed to the streaming token callback. More... | |
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| static void | entropic::log_prompt (const std::vector< Message > &messages, const std::string &tier) |
| Log the full assembled prompt (all messages, no truncation). | |
| static void | entropic::stream_token_callback (const char *token, size_t len, void *user_data) |
| Token callback for streaming generation. | |
| static std::string | entropic::resolve_stream_finish_reason (int rc, size_t content_size) |
| Resolve a stream's finish_reason from rc + content size. | |
| static void | entropic::json_escape_into (const std::string &s, std::string &out) |
| Serialize messages to JSON for inference interface. | |
| static void | entropic::serialize_content_parts (const std::vector< ContentPart > &parts, std::string &out) |
| Serialize a single multimodal content_parts array (gh#37, v2.1.8). | |
Variables | |
| static auto | logger = entropic::log::get("core.response_generator") |
| static std::unordered_map< std::string, size_t > | entropic::s_tier_system_hash |
| Per-tier system prompt hash for diff detection across delegations. | |
|
static |
Definition at line 17 of file response_generator.cpp.