Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::CompleteTool Class Reference

Tool for signaling task completion. More...

Inheritance diagram for entropic::CompleteTool:
Collaboration diagram for entropic::CompleteTool:

Public Member Functions

 CompleteTool (ToolDefinition def)
 Construct from tool definition.
 
ServerResponse execute (const std::string &args_json) override
 Execute completion signal.
 
- 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 ToolDefinitiondefinition () const
 Get the full tool definition.
 
virtual std::string anchor_key (const std::string &args_json) const
 Generate anchor key for this tool result.
 
virtual MCPAccessLevel required_access_level () const
 Minimum access level required to execute this tool.
 

Additional Inherited Members

- Protected Attributes inherited from entropic::ToolBase
ToolDefinition definition_
 Tool definition.
 

Detailed Description

Tool for signaling task completion.

Definition at line 368 of file entropic_server.cpp.

Constructor & Destructor Documentation

◆ CompleteTool()

entropic::CompleteTool::CompleteTool ( ToolDefinition  def)
inlineexplicit

Construct from tool definition.

Parameters
defTool definition loaded from entropic/complete.json.

Definition at line 376 of file entropic_server.cpp.

Member Function Documentation

◆ execute()

ServerResponse entropic::CompleteTool::execute ( const std::string &  args_json)
overridevirtual

Execute completion signal.

Parse summary and emit completion directives.

Parameters
args_jsonJSON with "summary".
Returns
ServerResponse with complete + stop directives.

Issue #10 (v2.1.4): also forwards coverage_gap and suggested_files into the result JSON so the engine's directive builder can populate the typed CompleteDirective fields. The engine then suppresses auto-relay when coverage_gap is set, injecting a [COVERAGE GAP] user message into the lead context instead.

Parameters
args_jsonJSON with "summary" and optional "coverage_gap" / "suggested_files".
Returns
ServerResponse with summary and directives.

Implements entropic::ToolBase.

Definition at line 405 of file entropic_server.cpp.


The documentation for this class was generated from the following file: