|
Entropic 2.3.8
Local-first agentic inference engine
|
EntropicServer implementation — engine-level directive tools. More...
#include <entropic/mcp/servers/entropic_server.h>#include <entropic/mcp/tool_base.h>#include <entropic/mcp/server_base.h>#include <entropic/core/directives.h>#include <entropic/types/logging.h>#include <nlohmann/json.hpp>#include <algorithm>#include <chrono>#include <cstdlib>#include <string>#include <vector>
Go to the source code of this file.
Classes | |
| struct | entropic::TodoItem |
| Single todo entry. More... | |
| class | entropic::TodoTool |
| Tool for managing a persistent todo list. More... | |
| class | entropic::DelegateTool |
| Tool for delegating tasks to child inference loops. More... | |
| class | entropic::PipelineTool |
| Tool for multi-stage delegation pipelines. More... | |
| class | entropic::CompleteTool |
| Tool for signaling task completion. More... | |
| class | entropic::PhaseChangeTool |
| Tool for switching inference phase. More... | |
| class | entropic::PruneContextTool |
| Tool for pruning old messages from context. More... | |
| class | entropic::DiagnoseTool |
| Tool for full engine state snapshots. More... | |
| class | entropic::InspectTool |
| Tool for targeted engine state queries. More... | |
| class | entropic::ContextInspectTool |
| Tool for inspecting the current context window contents. More... | |
| class | entropic::FollowupTool |
| Recall prior delegation results via storage-backed search. More... | |
| class | entropic::ResumeDelegationTool |
| Resume a prior delegation with its conversation seeded. More... | |
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| static std::string | entropic::call_provider (char *(*fn)(void *), void *ud) |
| Call a state provider callback and wrap result. | |
| static std::string | entropic::call_history_provider (char *(*fn)(int, void *), int max_entries, void *ud) |
| Call history callback with max_entries param. | |
| static std::string | entropic::call_docs_provider (char *(*fn)(const char *, void *), const char *section, void *ud) |
| Call docs callback with section param. | |
| static nlohmann::json | entropic::build_snapshot (const entropic_state_provider_t &p, bool include_docs, int history_limit) |
| Build the diagnose snapshot JSON. | |
| static std::vector< std::string > | entropic::collect_object_keys (const nlohmann::json &j) |
| Collect keys from a JSON object into a vector. | |
| static std::vector< std::string > | entropic::collect_array_names (const nlohmann::json &j) |
| Collect "name" fields from a JSON array of objects. | |
| static std::string | entropic::list_available_keys (const nlohmann::json &j) |
| List available keys from a JSON value for error messages. | |
| static std::string | entropic::filter_json_by_key (const std::string &json_str, const std::string &key, const std::string &label) |
| Filter a JSON value by key (object key or array name). | |
| static std::string | entropic::inspect_filterable (char *(*fn)(void *), void *ud, const std::string &key, const std::string &label) |
| Inspect a filterable target (config/identity/tool). | |
| static bool | entropic::dispatch_simple_target (const entropic_state_provider_t &p, const std::string &target, const std::string &key, std::string &result) |
| Dispatch inspect for simple (non-filterable) targets. | |
| static bool | entropic::dispatch_filterable_target (const entropic_state_provider_t &p, const std::string &target, const std::string &key, std::string &result) |
| Try filterable targets (config/identity/tool). | |
| static std::string | entropic::dispatch_inspect (const entropic_state_provider_t &p, const std::string &target, const std::string &key) |
| Dispatch an inspect query to the appropriate provider. | |
Variables | |
| static auto | logger = entropic::log::get("mcp.entropic") |
EntropicServer implementation — engine-level directive tools.
All tools emit directives. Directive parameters are carried through the ServerResponse result JSON; the engine's MCP layer reconstructs typed directives from the serialized envelope. Base Directive structs in the directives vector carry only the type tag for serialize_response().
v1.9.12: Added DiagnoseTool and InspectTool for engine introspection. v2.0.6-rc16: Added ContextInspectTool for context window inspection (P2-16).
Definition in file entropic_server.cpp.
|
static |
Definition at line 31 of file entropic_server.cpp.