|
Entropic 2.14.3
Local-first agentic inference engine
|
Tool for delegating tasks to child inference loops. More...


Public Member Functions | |
| DelegateTool (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 delegation. | |
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. | |
Tool for delegating tasks to child inference loops.
@dg_internal
Definition at line 265 of file entropic_server.cpp.
| entropic::DelegateTool::DelegateTool | ( | 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 enum in input schema.
| def | Tool definition loaded from entropic/delegate.json. |
| tier_names | Available tier names for enum patching. @dg_internal |
The target enum is patched at construction from the tier names the server was given — and those exclude source tiers, so a tier cannot delegate to itself.
| def | Tool definition. |
| tier_names | Tier names for target enum. |
| require_context_tiers | Tiers that refuse a contextless delegation (gh#162). @req REQ-MCP-024 @req REQ-MCP-013 @req REQ-DELEG-006 |
Definition at line 310 of file entropic_server.cpp.
|
overridevirtual |
Execute delegation.
Parse delegation args and emit directives.
| args_json | JSON with "target", "task", "max_turns", "context". |
requires_context and none was supplied (gh#162). @dg_internal | args_json | JSON with "target", "task", optional "max_turns" (defaulting to -1 for "engine decides") and optional "context" file references (gh#162). |
requires_context and none was supplied, the declared requires_context error with NO directives (gh#162). @req REQ-MCP-024 @req REQ-DELEG-006 Implements entropic::ToolBase.
Definition at line 372 of file entropic_server.cpp.