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

Tool for multi-stage delegation pipelines. More...

Inheritance diagram for entropic::PipelineTool:
Collaboration diagram for entropic::PipelineTool:

Public Member Functions

 PipelineTool (ToolDefinition def, const std::vector< std::string > &tier_names, std::vector< std::string > require_context_tiers={})
 Construct and patch input schema with tier names.
 
ServerResponse execute (const std::string &args_json) override
 Execute pipeline setup.
 
- 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

Tool for multi-stage delegation pipelines.

@dg_internal

Version
1.8.5

Definition at line 419 of file entropic_server.cpp.

Constructor & Destructor Documentation

◆ PipelineTool()

entropic::PipelineTool::PipelineTool ( ToolDefinition  def,
const std::vector< std::string > &  tier_names,
std::vector< std::string >  require_context_tiers = {} 
)

Construct and patch input schema with tier names.

Construct and patch stage enum in input schema.

Parameters
defTool definition loaded from entropic/pipeline.json.
tier_namesAvailable tier names for enum patching. @dg_internal
Version
1.8.5

The tier list is kept as a member as well as patched into the schema, so stages are re-validated at execute time rather than trusting the model to have honoured the enum.

Parameters
defTool definition.
tier_namesTier names for stages enum. @req REQ-MCP-024 @req REQ-MCP-013
Version
2.10.0

Definition at line 460 of file entropic_server.cpp.

Member Function Documentation

◆ execute()

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

Execute pipeline setup.

Parse pipeline args, validate stages, emit directives.

Parameters
args_jsonJSON with "stages" array and "task".
Returns
ServerResponse with pipeline + stop directives. @dg_internal
Version
1.8.5

gh#129 (v2.10.0): every stage is validated against tier_names_ before any directive is emitted. gh#162 (v2.13.0): the context list is carried through and a stage declaring requires_context refuses the run.

Parameters
args_jsonJSON with "stages", "task" and optional "context".
Returns
On success, a ServerResponse echoing the stages with pipeline + stop_processing directives; otherwise an error string with NO directives, so nothing is dispatched. @req REQ-MCP-024 @req REQ-DELEG-006
Version
2.13.0

Implements entropic::ToolBase.

Definition at line 561 of file entropic_server.cpp.


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