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

Types for the agentic loop engine. More...

#include <entropic/core/directives.h>
#include <entropic/types/enums.h>
#include <entropic/types/message.h>
#include <entropic/types/tool_call.h>
#include <atomic>
#include <filesystem>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for engine_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::LoopConfig
 Configuration for the agentic loop. More...
 
struct  entropic::LoopMetrics
 Metrics collected during loop execution. More...
 
struct  entropic::PendingDelegation
 Pending single delegation (stored by dir_delegate handler). More...
 
struct  entropic::PendingPipeline
 Pending multi-stage pipeline (stored by dir_pipeline handler). More...
 
struct  entropic::ChildContextInfo
 Resolved tier information for building child delegation contexts. More...
 
struct  entropic::TierResolutionInterface
 Tier resolution callbacks for delegation and auto-chain. More...
 
struct  entropic::LoopContext
 Mutable state carried through the agentic loop. More...
 
struct  entropic::EngineCallbacks
 Callback function pointer types for engine events. More...
 
struct  entropic::ToolExecutionInterface
 Tool execution interface for the engine. More...
 
struct  entropic::ToolExecutorHooks
 Engine-level hooks called during tool processing. More...
 
struct  entropic::StorageInterface
 Storage interface for conversation persistence. More...
 
struct  entropic::PermissionPersistInterface
 Permission persistence interface. More...
 
struct  entropic::GenerationEvents
 Atomic flags for interrupt/pause signaling. More...
 
struct  entropic::InterruptContext
 Context for interrupted/paused generation. More...
 

Namespaces

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

Typedefs

using entropic::ToolExecutionFn = std::vector< Message >(*)(LoopContext &ctx, const std::vector< ToolCall > &tool_calls, void *user_data)
 Tool execution callback type.
 
using entropic::PermissionPersistFn = void(*)(const char *pattern, bool allow, void *user_data)
 Permission persistence callback type.
 

Enumerations

enum class  entropic::AgentState : int {
  IDLE = ENTROPIC_AGENT_STATE_IDLE , PLANNING = ENTROPIC_AGENT_STATE_PLANNING , EXECUTING = ENTROPIC_AGENT_STATE_EXECUTING , WAITING_TOOL = ENTROPIC_AGENT_STATE_WAITING_TOOL ,
  VERIFYING = ENTROPIC_AGENT_STATE_VERIFYING , DELEGATING = ENTROPIC_AGENT_STATE_DELEGATING , COMPLETE = ENTROPIC_AGENT_STATE_COMPLETE , ERROR = ENTROPIC_AGENT_STATE_ERROR ,
  INTERRUPTED = ENTROPIC_AGENT_STATE_INTERRUPTED , PAUSED = ENTROPIC_AGENT_STATE_PAUSED
}
 C++ enum class for agent execution states. More...
 
enum class  entropic::InterruptMode { entropic::CANCEL , entropic::PAUSE , entropic::INJECT }
 How to handle generation interrupt. More...
 
enum class  entropic::ToolApproval { entropic::DENY , entropic::ALLOW , entropic::ALWAYS_DENY , entropic::ALWAYS_ALLOW }
 Tool approval responses from user. More...
 

Functions

const char * entropic::agent_state_name (AgentState state)
 Get the string name for an AgentState value.
 

Detailed Description

Types for the agentic loop engine.

LoopConfig, LoopContext, LoopMetrics, EngineCallbacks, GenerationEvents, InterruptContext, InterruptMode, ToolApproval. Used across engine subsystems (AgentEngine, ResponseGenerator, ContextManager).

Version
1.8.4

Definition in file engine_types.h.