|
Entropic 2.11.1
Local-first agentic inference engine
|
Tool for inspecting the current context window contents. More...


Public Member Functions | |
| ContextInspectTool (ToolDefinition def) | |
| Construct from tool definition. | |
| ServerResponse | execute (const std::string &args_json) override |
| Return context window contents as a message array. | |
| MCPAccessLevel | required_access_level () const override |
| Read-only tool requires only READ access. | |
| void | set_provider (const entropic_state_provider_t *p) |
| Set state provider pointer. | |
Public Member Functions inherited from entropic::ToolBase | |
| ToolBase (ToolDefinition def) | |
| Construct with a pre-built definition. | |
| const std::string & | name () const |
| Get the tool name. | |
| const ToolDefinition & | definition () const |
| Get the full tool definition. | |
| virtual std::string | anchor_key (const std::string &args_json) const |
| Generate anchor key for this tool result. | |
Additional Inherited Members | |
Protected Attributes inherited from entropic::ToolBase | |
| ToolDefinition | definition_ |
| Tool definition. | |
Tool for inspecting the current context window contents.
Returns each message with role, content preview, and estimated token count so the model can assess its own context saturation.
@dg_internal
Definition at line 878 of file entropic_server.cpp.
|
inlineexplicit |
Construct from tool definition.
| def | Tool definition loaded from entropic/context_inspect.json. @dg_internal |
Definition at line 886 of file entropic_server.cpp.
|
overridevirtual |
Return context window contents as a message array.
| args_json | JSON with optional "max_messages" (0 = all). |
Delegates to the state provider's get_history callback with the caller-supplied max_messages limit (0 = all messages).
| args_json | JSON with optional "max_messages" (0 = all). |
Implements entropic::ToolBase.
Definition at line 1185 of file entropic_server.cpp.
|
inlineoverridevirtual |
Read-only tool requires only READ access.
Reimplemented from entropic::ToolBase.
Definition at line 905 of file entropic_server.cpp.
|
inline |
Set state provider pointer.
| p | Provider pointer. @utility |
Definition at line 914 of file entropic_server.cpp.