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

Core agent execution engine. More...

#include <entropic/entropic.h>
#include <entropic/core/compaction.h>
#include <entropic/core/context_manager.h>
#include <entropic/core/directives.h>
#include <entropic/core/engine_types.h>
#include <entropic/core/response_generator.h>
#include <entropic/core/sandbox.h>
#include <entropic/interfaces/i_hook_handler.h>
#include <entropic/core/stream_think_filter.h>
#include <entropic/interfaces/i_inference_callbacks.h>
#include <entropic/types/session_logger.h>
#include <atomic>
#include <deque>
#include <filesystem>
#include <mutex>
#include <optional>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <nlohmann/json_fwd.hpp>
Include dependency graph for engine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  entropic::AgentEngine
 Core agent execution engine. More...
 
struct  entropic::AgentEngine::DelegationCallbacks
 Grouped consumer-registered delegation callbacks (gh#29). More...
 

Namespaces

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

Detailed Description

Core agent execution engine.

Manages the agentic loop lifecycle: state transitions, generation, context management, directive processing, interrupt/pause.

Lifecycle
AgentEngine engine(inference, loop_config, compaction_config);
engine.set_callbacks(callbacks);
auto result = engine.run(messages_json);
Threading
  • run() is synchronous and blocks the calling thread.
  • interrupt()/pause()/cancel_pause() are thread-safe (atomic flags).
  • Callbacks fire on the calling thread.
Version
1.8.6

Definition in file engine.h.