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

Resume a prior delegation with its conversation seeded. More...

Inheritance diagram for entropic::ResumeDelegationTool:
Collaboration diagram for entropic::ResumeDelegationTool:

Public Member Functions

 ResumeDelegationTool (ToolDefinition def, const std::vector< std::string > &tier_names)
 Construct from loaded tool definition.
 
ServerResponse execute (const std::string &args_json) override
 Emit a resume-flavored delegate directive.
 
- 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.
 
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

Resume a prior delegation with its conversation seeded.

Backs entropic.resume_delegation. Emits a delegate directive with resume_from_delegation_id set; the engine's delegation handler loads the prior child conversation from storage and builds the child context with that history before running the new task.

@dg_internal

Version
2.1.6

Definition at line 1529 of file entropic_server.cpp.

Constructor & Destructor Documentation

◆ ResumeDelegationTool()

entropic::ResumeDelegationTool::ResumeDelegationTool ( ToolDefinition  def,
const std::vector< std::string > &  tier_names 
)
inline

Construct from loaded tool definition.

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

Construct and patch the target enum with the tier names.

Parameters
defTool definition (entropic/resume_delegation.json).
tier_namesTiers a resume may address (gh#162). @dg_internal
Version
2.13.0

Definition at line 1544 of file entropic_server.cpp.

Member Function Documentation

◆ execute()

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

Emit a resume-flavored delegate directive.

Parse resume args and emit a resume-flavored DelegateDirective.

Parameters
args_jsonJSON {delegation_id, task, max_turns?}.
Returns
ServerResponse with delegate + stop directives. @dg_internal
Version
2.1.6
Parameters
args_jsonJSON {delegation_id?, target?, task, max_turns?}.
Returns
On valid arguments, a ServerResponse with delegate + stop_processing directives. On non-object args, a missing task, or neither delegation_id nor target (gh#162), the declared invalid_args error with NO directives — validation precedes any directive emission. @req REQ-MCP-024
Version
2.14.0

Implements entropic::ToolBase.

Definition at line 1573 of file entropic_server.cpp.


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