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

Recall prior delegation results via storage-backed search. More...

Inheritance diagram for entropic::FollowupTool:
Collaboration diagram for entropic::FollowupTool:

Public Member Functions

 FollowupTool (ToolDefinition def)
 Construct from loaded tool definition.
 
ServerResponse execute (const std::string &args_json) override
 Execute a followup query.
 
MCPAccessLevel required_access_level () const override
 Read-only — requires only READ access.
 
void set_provider (const entropic_state_provider_t *p)
 Store provider pointer (non-owning).
 
- 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.
 

Additional Inherited Members

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

Detailed Description

Recall prior delegation results via storage-backed search.

Backs entropic.followup. Read-only; no directives. Uses the state provider's search_delegations callback to surface candidate matches and returns the JSON verbatim to the model.

@dg_internal

Version
2.1.6

Definition at line 1213 of file entropic_server.cpp.

Constructor & Destructor Documentation

◆ FollowupTool()

entropic::FollowupTool::FollowupTool ( ToolDefinition  def)
inlineexplicit

Construct from loaded tool definition.

Parameters
defTool definition (entropic/followup.json). @dg_internal
Version
2.1.6

Definition at line 1221 of file entropic_server.cpp.

Member Function Documentation

◆ execute()

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

Execute a followup query.

Execute a followup query against prior delegations.

Parameters
args_jsonJSON with required "query" and optional "max_results".
Returns
ServerResponse with results JSON; no directives. @dg_internal
Version
2.1.6
Parameters
args_jsonJSON with "query" and optional "max_results" (default 3).
Returns
A ServerResponse with NO directives whose result is the search results JSON, or one of the typed errors: invalid args for non-object/malformed JSON, a required-query error for an empty query, or storage-not-available when no search provider is wired. @req REQ-MCP-024
Version
2.1.6

Implements entropic::ToolBase.

Definition at line 1269 of file entropic_server.cpp.

◆ required_access_level()

MCPAccessLevel entropic::FollowupTool::required_access_level ( ) const
inlineoverridevirtual

Read-only — requires only READ access.

Returns
MCPAccessLevel::READ, relaxing ToolBase's WRITE default because this tool only reads prior delegation records. @req REQ-MCP-011
Version
2.1.6

Reimplemented from entropic::ToolBase.

Definition at line 1240 of file entropic_server.cpp.

◆ set_provider()

void entropic::FollowupTool::set_provider ( const entropic_state_provider_t p)
inline

Store provider pointer (non-owning).

Parameters
pProvider pointer. @utility
Version
2.1.6

Definition at line 1249 of file entropic_server.cpp.


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