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

Delegate a task to a child inference loop. More...

#include <entropic/core/directives.h>

Inheritance diagram for entropic::DelegateDirective:
Collaboration diagram for entropic::DelegateDirective:

Public Member Functions

 DelegateDirective (std::string tgt="", std::string tsk="", int mt=-1, std::string resume_id="")
 Construct a Delegate directive.
 

Public Attributes

std::string target
 Target tier for delegation.
 
std::string task
 Task description.
 
int max_turns = -1
 Max turns (-1 = default)
 
std::string resume_from_delegation_id
 gh#32 (v2.1.6): empty = fresh delegate
 
std::vector< ContextRef > context
 gh#162 (v2.13.0): seeded file references
 
bool resume_by_target = false
 gh#162 (v2.13.0): resume the most recent delegation to target instead of naming a storage id.
 
- Public Attributes inherited from entropic::Directive
entropic_directive_type_t type
 Discriminant for dispatch.
 

Detailed Description

Delegate a task to a child inference loop.

gh#162 (v2.13.0): context carries the lead's already-earned file references into the child's opening message. Measured on the reporting consumer, a child that had to re-derive a path it was never given cost 3.8x wall time and still answered from inference about a file that does not exist.

gh#32 (v2.1.6): resume_from_delegation_id opts into resume mode — the child context is seeded with the prior delegation's conversation history loaded from storage, then the new task is appended as a user message. Empty means a fresh cold start (the historical default).

Version
2.1.6

Definition at line 106 of file directives.h.

Constructor & Destructor Documentation

◆ DelegateDirective()

entropic::DelegateDirective::DelegateDirective ( std::string  tgt = "",
std::string  tsk = "",
int  mt = -1,
std::string  resume_id = "" 
)
inline

Construct a Delegate directive.

Parameters
tgtTarget tier.
tskTask description.
mtMax turns.
resume_idOptional delegation id to resume from (gh#32).
Version
2.1.6

Definition at line 125 of file directives.h.

Member Data Documentation

◆ context

std::vector<ContextRef> entropic::DelegateDirective::context

gh#162 (v2.13.0): seeded file references

Definition at line 111 of file directives.h.

◆ max_turns

int entropic::DelegateDirective::max_turns = -1

Max turns (-1 = default)

Definition at line 109 of file directives.h.

◆ resume_by_target

bool entropic::DelegateDirective::resume_by_target = false

gh#162 (v2.13.0): resume the most recent delegation to target instead of naming a storage id.

The id is resolved by the engine at admission, because the tool cannot see storage.

Definition at line 115 of file directives.h.

◆ resume_from_delegation_id

std::string entropic::DelegateDirective::resume_from_delegation_id

gh#32 (v2.1.6): empty = fresh delegate

Definition at line 110 of file directives.h.

◆ target

std::string entropic::DelegateDirective::target

Target tier for delegation.

Definition at line 107 of file directives.h.

◆ task

std::string entropic::DelegateDirective::task

Task description.

Definition at line 108 of file directives.h.


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