Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic_server.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
12#pragma once
13
17
18#include <functional>
19#include <memory>
20#include <string>
21#include <vector>
22
23namespace entropic {
24
25class TodoTool;
26class DelegateTool;
27class PipelineTool;
28class CompleteTool;
29class PhaseChangeTool;
30class PruneContextTool;
31class DiagnoseTool;
32class InspectTool;
33class ContextInspectTool;
34class FollowupTool;
35class ResumeDelegationTool;
36
52public:
62 EntropicServer(const std::vector<std::string>& tier_names,
63 const std::string& data_dir,
64 const std::vector<std::string>& require_context_tiers = {});
65
66 ~EntropicServer() override;
67
74 bool skip_duplicate_check(const std::string& tool_name) const override;
75
82
89 bool release_session(const std::string& key) override;
90
96 std::size_t session_count() const override;
97
98private:
99 std::unique_ptr<TodoTool> todo_;
100 std::unique_ptr<DelegateTool> delegate_;
101 std::unique_ptr<PipelineTool> pipeline_;
102 std::unique_ptr<CompleteTool> complete_;
103 std::unique_ptr<PhaseChangeTool> phase_change_;
104 std::unique_ptr<PruneContextTool> prune_context_;
105 std::unique_ptr<DiagnoseTool> diagnose_;
106 std::unique_ptr<InspectTool> inspect_;
107 std::unique_ptr<ContextInspectTool> context_inspect_;
108 std::unique_ptr<FollowupTool> followup_;
109 std::unique_ptr<ResumeDelegationTool> resume_delegation_;
110 entropic_state_provider_t state_provider_{};
111
114 int register_core_tools(const std::string& tools_dir);
115
118 int register_delegation_tools(
119 const std::string& tools_dir,
120 const std::vector<std::string>& tier_names,
121 const std::vector<std::string>& require_context_tiers = {});
122
125 int register_introspection_tools(const std::string& tools_dir);
126};
127
128} // namespace entropic
gh#32 (v2.1.6) resume
std::size_t session_count() const override
Sessions holding a todo list on this server (gh#158).
void set_state_provider(const entropic_state_provider_t &provider)
Set the engine state provider for introspection tools.
bool release_session(const std::string &key) override
Release key's todo list (gh#158).
~EntropicServer() override
Destructor.
bool skip_duplicate_check(const std::string &tool_name) const override
delegate and pipeline skip duplicate check.
Concrete base class for MCP servers (80% logic).
Definition server_base.h:66
A server that keeps state per session and can release it (gh#158).
Pure C interface contract for MCP server plugins.
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver
MCPServerBase concrete base class + ServerResponse.
Server state that belongs to a SESSION, not to the server (gh#158).
Read-only engine state provider for introspection tools.