Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
directives.h File Reference

Directive processing for tool-to-engine communication. More...

#include <entropic/types/enums.h>
#include <entropic/types/message.h>
#include <entropic/interfaces/i_hook_handler.h>
#include <functional>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for directives.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::Directive
 Base directive — all directives carry a type tag. More...
 
struct  entropic::StopProcessingDirective
 Stop processing remaining tool calls. More...
 
struct  entropic::TierChangeDirective
 Request a tier change. More...
 
struct  entropic::DelegateDirective
 Delegate a task to a child inference loop. More...
 
struct  entropic::PipelineDirective
 Execute a multi-stage delegation pipeline. More...
 
struct  entropic::CompleteDirective
 Signal explicit completion. More...
 
struct  entropic::ClearSelfTodosDirective
 Clear self-directed todos (engine no-op). More...
 
struct  entropic::InjectContextDirective
 Inject a message into the conversation context. More...
 
struct  entropic::PruneMessagesDirective
 Prune old tool results from context. More...
 
struct  entropic::ContextAnchorDirective
 Update a keyed persistent context anchor. More...
 
struct  entropic::PhaseChangeDirective
 Switch the active inference phase. More...
 
struct  entropic::NotifyPresenterDirective
 Generic UI notification passthrough. More...
 
struct  entropic::DirectiveResult
 Aggregate result of processing a batch of directives. More...
 
class  entropic::DirectiveProcessor
 Processes tool directives via registry-based dispatch. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Typedefs

using entropic::DirectiveHandler = std::function< void(LoopContext &ctx, const Directive &directive, DirectiveResult &result)>
 Directive handler function type.
 

Detailed Description

Directive processing for tool-to-engine communication.

Tools return results with embedded directives. The MCP layer extracts these into typed Directive structs (v1.8.5). Core's DirectiveProcessor dispatches each directive to a registered handler.

Core never touches JSON — it receives typed C++ objects only.

Version
1.8.4

Definition in file directives.h.