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

Processes tool directives via registry-based dispatch. More...

#include <entropic/core/directives.h>

Public Member Functions

void register_handler (entropic_directive_type_t dtype, DirectiveHandler handler)
 Register a handler for a directive type.
 
DirectiveResult process (LoopContext &ctx, const std::vector< const Directive * > &directives)
 Process a list of directives.
 
void set_hooks (const HookInterface &hooks)
 Set the hook dispatch interface.
 

Detailed Description

Processes tool directives via registry-based dispatch.

The engine registers handlers for each directive type. The processor iterates a directive list and dispatches each to the registered handler.

Version
1.8.4

Definition at line 312 of file directives.h.

Member Function Documentation

◆ process()

DirectiveResult entropic::DirectiveProcessor::process ( LoopContext ctx,
const std::vector< const Directive * > &  directives 
)

Process a list of directives.

Process a list of directives, dispatching to handlers.

Parameters
ctxCurrent loop context.
directivesTyped directive list.
Returns
Aggregate result.
Version
1.8.4
Parameters
ctxCurrent loop context.
directivesTyped directive list.
Returns
Aggregate result.

Definition at line 39 of file directives.cpp.

◆ register_handler()

void entropic::DirectiveProcessor::register_handler ( entropic_directive_type_t  dtype,
DirectiveHandler  handler 
)

Register a handler for a directive type.

Parameters
dtypeDirective type enum value.
handlerHandler function.
Version
1.8.4
Parameters
dtypeDirective type enum value.
handlerHandler function.

Definition at line 25 of file directives.cpp.

◆ set_hooks()

void entropic::DirectiveProcessor::set_hooks ( const HookInterface &  hooks)
inline

Set the hook dispatch interface.

Parameters
hooksHook dispatch interface. @utility
Version
1.9.1

Definition at line 340 of file directives.h.


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