include/entropic/core/engine_types.h¶
include/entropic/core/engine_types.h
Enums
AgentState
C++ enum class for agent execution states.
Maps 1:1 to C entropic_agent_state_t for cross-boundary use.
IDLEENTROPIC_AGENT_STATE_IDLEPLANNINGENTROPIC_AGENT_STATE_PLANNINGEXECUTINGENTROPIC_AGENT_STATE_EXECUTINGWAITING_TOOLENTROPIC_AGENT_STATE_WAITING_TOOLVERIFYINGENTROPIC_AGENT_STATE_VERIFYINGDELEGATINGENTROPIC_AGENT_STATE_DELEGATINGCOMPLETEENTROPIC_AGENT_STATE_COMPLETEERRORENTROPIC_AGENT_STATE_ERRORINTERRUPTEDENTROPIC_AGENT_STATE_INTERRUPTEDPAUSEDENTROPIC_AGENT_STATE_PAUSED
InterruptMode
How to handle generation interrupt.
CANCELPAUSEINJECT
ToolApproval
Tool approval responses from user.
DENYALLOWALWAYS_DENYALWAYS_ALLOW
BudgetMode
Thinking-budget gating mode.
(gh#80, v2.5.0) Charges generation effort that does NOT produce a tool call against a budget; a tool call resets the counter. On exhaustion the engine nudges the model to complete, then hard-cuts with a failure note visible in history. Opt-in: off is the default and preserves pre-v2.5.0 behavior exactly.
offtokenswall_clock
Types
using entropic::ToolExecutionFn = typedef std::vector<Message> (*)( LoopContext& ctx, const std::vector<ToolCall>& tool_calls, void* user_data) hook point
Tool execution callback type.
Called by the engine when tool calls are parsed from model output. The facade wires this to ToolExecutor::process_tool_calls().
- Parameters
ctx— Mutable loop context.tool_calls— Tool calls to process.user_data— Opaque pointer (ToolExecutor instance).
- Returns
- Result messages to append to context.
using entropic::PermissionPersistFn = typedef void (*)( const char* pattern, bool allow, void* user_data) hook point
Permission persistence callback type.
Called when a user approves ALWAYS_ALLOW or ALWAYS_DENY so the pattern can be saved to disk. Injected by the facade.
- Parameters
pattern— Permission pattern string.allow— true for allow, false for deny.user_data— Opaque pointer (PermissionPersister*).
entropic::ChildContextInfo
Resolved tier information for building child delegation contexts.
std::string entropic::ChildContextInfo::system_prompt
Built for target tier.
std::vector<std::string> entropic::ChildContextInfo::allowed_tools
Allowed tool names (gh#121)
bool entropic::ChildContextInfo::explicit_completion
Requires entropic.complete?
std::string entropic::ChildContextInfo::completion_instructions
Instructions for explicit completion.
bool entropic::ChildContextInfo::valid
False if tier not found.
int entropic::ChildContextInfo::max_iterations_override
Per-tier max_iterations (-1 = global, P3-18)
int entropic::ChildContextInfo::max_tool_calls_per_turn_override
Per-tier tool cap (-1 = global, P3-18)
int entropic::ChildContextInfo::max_consecutive_empty_turns_override
Per-tier empty-turn allowance (-1 = global default, gh#123)
entropic::EngineCallbacks
Callback function pointer types for engine events.
void(* entropic::EngineCallbacks::on_state_change) (int state, void *ud)
AgentState as int.
void(* entropic::EngineCallbacks::on_stream_chunk) (const char *chunk, size_t len, void *ud)
Per-token streaming.
void(* entropic::EngineCallbacks::on_tier_selected) (const char *tier, void *ud)
Tier routing result.
void(* entropic::EngineCallbacks::on_routing_complete) (const char *json, void *ud)
Full routing JSON.
void(* entropic::EngineCallbacks::on_tool_call) (const char *json, void *ud)
Tool call request.
void(* entropic::EngineCallbacks::on_tool_start) (const char *json, void *ud)
Tool execution start.
void(* entropic::EngineCallbacks::on_tool_complete) (const char *json, const char *result, double ms, void *ud)
Tool execution done.
void(* entropic::EngineCallbacks::on_presenter_notify) (const char *key, const char *json, void *ud)
UI notification.
void(* entropic::EngineCallbacks::on_compaction) (const char *json, void *ud)
Compaction result.
void(* entropic::EngineCallbacks::on_pause_prompt) (const char *partial, char **injection, void *ud)
Pause: get injection.
void(* entropic::EngineCallbacks::on_tool_record) (const char *tier, const char *json, const char *result, const char *error, double ms, void *ud)
Tool audit record.
void(* entropic::EngineCallbacks::on_delegation_start) (const char *child_id, const char *tier, const char *task, void *ud)
Delegation spawned.
void(* entropic::EngineCallbacks::on_delegation_complete) (const char *child_id, const char *tier, const char *summary, int success, void *ud)
Delegation returned.
const char *(* entropic::EngineCallbacks::error_sanitizer) (const char *raw, void *ud)
Sanitize errors.
void* entropic::EngineCallbacks::user_data
Opaque pointer passed to all callbacks.
entropic::GenerationEvents
Atomic flags for interrupt/pause signaling.
std::atomic<bool>* entropic::GenerationEvents::interrupt
Hard interrupt flag.
std::atomic<bool>* entropic::GenerationEvents::pause
Pause flag.
entropic::InterruptContext
Context for interrupted/paused generation.
std::string entropic::InterruptContext::partial_content
Content generated before interrupt.
std::vector<ToolCall> entropic::InterruptContext::partial_tool_calls
Parsed tool calls (if any)
std::string entropic::InterruptContext::injection
User injection content.
InterruptMode entropic::InterruptContext::mode
Interrupt handling mode.
entropic::LoopConfig
Configuration for the agentic loop.
int entropic::LoopConfig::max_iterations
Max loop iterations before forced stop.
int entropic::LoopConfig::max_consecutive_errors
Errors before ERROR state.
int entropic::LoopConfig::max_tool_calls_per_turn
Tool calls per iteration (v1.8.5)
int entropic::LoopConfig::idle_timeout_seconds
Idle timeout (reserved)
int entropic::LoopConfig::context_length
Context budget for compaction (v2.0.4)
bool entropic::LoopConfig::require_plan_for_complex
Planning gate (reserved)
bool entropic::LoopConfig::stream_output
Stream vs batch generation.
bool entropic::LoopConfig::speculative_enabled
gh#110 (v2.9.6): mirrors inference.speculative.enabled from config, plumbed through since core.so has zero dependency on config.so (design rule 2).
Used only by ResponseGenerator::dispatch_batch_generate to pick the dispatching (speculative-capable) batch entry point over the cancel-aware one when stream_output is false — the cancel-aware generate_cancellable bypasses speculative/MTP routing entirely (see orchestrator.cpp generate(...cancel...) doc comment).
bool entropic::LoopConfig::delegation_isolation
gh#160 (v2.13.0): mirrors delegation.isolation == sandbox .
Plumbed like speculative_enabled above — core.so has no dependency on config.so. OFF (the default and every shipped release's real behaviour) means no sandbox is created at all, so the snapshot cost gh#160 reported disappears with it.
bool entropic::LoopConfig::auto_approve_tools
Skip tool approval (v1.8.5)
int entropic::LoopConfig::max_consecutive_same_tool
Anti-spiral SOFT threshold: after N consecutive calls of the SAME tool (regardless of arg similarity, since exact-arg duplicates are already handled by recent_tool_calls), the engine populates pending_anti_spiral_warning so the next turn's system reminder tells the model to pivot tools or complete.
Advisory only — the engine does NOT block the call. (Demo ask #5, v2.1.0)
int entropic::LoopConfig::max_consecutive_same_tool_hard_block
Anti-spiral HARD threshold: when consecutive same-tool calls exceed this, the engine blocks the call BEFORE dispatch and returns a rejected_anti_spiral typed result.
Negative (default sentinel -1) means derive at config-load time as (max_consecutive_same_tool + 2). Set to a large value to effectively disable the hard block while keeping the soft advisory warning. (#14, v2.1.4)
int entropic::LoopConfig::max_identical_failures
How many times one EXACT call (tool + sorted arguments) may fail before the engine refuses it pre-dispatch.
Distinct from the two thresholds above, which count consecutive calls by tool NAME and so cannot see a single call repeating with identical arguments — and which reset per delegation, since each child gets a fresh LoopContext. 3 tolerates the retry that v1.8.5 deliberately allows (a genuinely transient failure gets a second attempt) and refuses the third. A third identical attempt against an identical error is not a retry, it is a spiral: nothing about the call or the world has changed. (v2.13.0, from the gate's test-e7-delegation timeout)
int entropic::LoopConfig::max_consecutive_failed_delegations
gh#64: cap on N consecutive failed delegations targeting the same tier.
When the lead re-delegates to a target that has just failed max_consecutive_failed_delegations times in a row, the engine blocks the call BEFORE dispatching the child loop and pushes a [DELEGATION REJECTED] ... stop retrying message to the lead's context so it pivots or completes. Defaults to 2 — any failure deserves a retry; chronic failures don't. Reset counter on (a) successful delegation, (b) delegation to a different target, or (c) any non-delegation tool call.
int entropic::LoopConfig::max_tool_result_bytes
Maximum byte length for a single tool's result content before the engine truncates with a "[... truncated, N more bytes]" tail.
Single global cap; per-tool overrides not yet supported. 0 disables truncation. Default 16 KB — large enough for typical filesystem.read_file / git.diff returns, small enough that runaway tool output cannot exhaust the context budget alone. (Demo ask #6, v2.1.0)
int entropic::LoopConfig::message_queue_capacity
Capacity of the mid-generation user-message queue surfaced by entropic_queue_user_message .
When the queue is at this depth, additional enqueues return ENTROPIC_ERROR_QUEUE_FULL. (gh#40, v2.1.10)
BudgetMode entropic::LoopConfig::budget_mode
Thinking-budget gating mode (gh#80, v2.5.0).
Default off — opt-in, no behavior change for existing consumers. When tokens or wall_clock, generation that does not emit a tool call is charged against budget_limit; a tool call resets the counter. Applies to all tiers uniformly.
int entropic::LoopConfig::budget_limit
Budget ceiling for the active budget_mode : generated tokens (mode tokens ) or wall-clock seconds (mode wall_clock ) of tool-call-free generation before the engine first nudges the model to complete, then hard-cuts.
Ignored when budget_mode is off. Must be > 0 to engage. (gh#80, v2.5.0)
entropic::LoopContext
Mutable state carried through the agentic loop.
std::vector<Message> entropic::LoopContext::messages
Conversation history.
std::vector<ToolCall> entropic::LoopContext::pending_tool_calls
Pending tool calls (v1.8.5)
AgentState entropic::LoopContext::state
Current state.
LoopMetrics entropic::LoopContext::metrics
Timing and counts.
int entropic::LoopContext::consecutive_errors
Error streak counter.
int entropic::LoopContext::consecutive_duplicate_attempts
Stuck-model detector.
int entropic::LoopContext::effective_tool_calls
Non-blocked calls this iteration.
bool entropic::LoopContext::has_pending_tool_results
Tool results awaiting presentation.
std::string entropic::LoopContext::locked_tier
Tier locked for this loop ("" = none)
std::string entropic::LoopContext::task_id
External task ID (MCP integration)
std::string entropic::LoopContext::session_key
Caller-scoped session this turn belongs to (gh#144, v2.12.0).
Distinct from conversation_id below, which is a STORAGE FK minted fresh on every run() and is neither caller-supplied nor stable. This is opaque, caller-supplied and stable — the backend maps it to a KV sequence.
std::string entropic::LoopContext::active_root
Directory this loop's tools are currently pointed at (gh#160).
Empty for a loop running against the session's own root. Set by DelegationManager on a child context when that child runs inside a sandbox, so a NESTED delegation restores its parent's sandbox rather than the project root when it finishes. Pre-gh#160 the restore target was always the repo root, which handed the outer delegation's remaining turns straight back to the user's working tree.
std::string entropic::LoopContext::conversation_id
Conversation ID for storage (v1.8.8)
std::string entropic::LoopContext::source
Message source.
std::string entropic::LoopContext::base_system
Base system prompt (pre-tier formatting)
std::unordered_map<std::string, std::string> entropic::LoopContext::metadata
Runtime metadata.
int entropic::LoopContext::delegation_depth
0 = root, 1+ = child
std::vector<std::string> entropic::LoopContext::delegation_ancestor_tiers
Tier stack from root to this loop (P1-9, 2.0.6-rc16)
std::string entropic::LoopContext::parent_conversation_id
Parent conv ID (delegation)
std::vector<std::string> entropic::LoopContext::child_conversation_ids
Spawned child IDs.
std::string entropic::LoopContext::active_phase
Active inference phase.
std::unordered_map<std::string, std::string> entropic::LoopContext::recent_tool_calls
Duplicate detection cache (v1.8.5)
std::unordered_map<std::string, int> entropic::LoopContext::failed_tool_calls
How often each exact call (tool + sorted args) has FAILED.
v2.13.0: record_tool_call deliberately keeps error results out of recent_tool_calls so a transient failure does not poison the call for the rest of the turn (v1.8.5). Correct for one retry, but it left the retry count unbounded — a delegated child re-issued one byte-identical refused read four times and died on its timeout. Counted separately so the transient retry survives and only the repeat is bounded.
std::optional<PendingDelegation> entropic::LoopContext::pending_delegation
Stored by dir_delegate (v1.8.6)
std::optional<PendingPipeline> entropic::LoopContext::pending_pipeline
Stored by dir_pipeline (v1.8.6)
int entropic::LoopContext::effective_max_iterations
Per-identity override (-1 = LoopConfig , P3-18)
int entropic::LoopContext::effective_max_tool_calls_per_turn
Per-identity override (-1 = LoopConfig , P3-18)
int entropic::LoopContext::delegated_max_turns
gh#182 (v2.13.0): the max_turns the MODEL asked for when it issued this child's entropic.delegate call.
-1 (or any value < 1) means the argument was omitted, which leaves the bound exactly where it was before this field existed. Deliberately NOT folded into effective_max_iterations: that field is the OPERATOR's setting (identity frontmatter, else LoopConfig), and the two are resolved together by resolve_max_iterations, which takes the STRICTER. Keeping them apart is what makes "a model may lower a bound, never raise one" a property of the resolver rather than of the order in which two writers happened to run.
std::string entropic::LoopContext::pending_validation_feedback
One-shot reminder text consumed by the next per-turn system prompt assembly.
Engine populates after a rejected validation; ResponseGenerator emits as a "[engine] previous turn rejected: …" line and the engine clears it post-emit. (Demo ask #2, v2.1.0)
std::string entropic::LoopContext::pending_anti_spiral_warning
One-shot anti-spiral reminder for the next per-turn system prompt.
Populated by ToolExecutor when consecutive_same_tool_calls reaches LoopConfig .max_consecutive_same_tool; ResponseGenerator emits as a "[engine] anti-spiral: <tool> called N times consecutively; pivot or complete next turn." line; engine clears post-emit. (Demo ask #5, v2.1.0)
std::string entropic::LoopContext::last_tool_name
Name of the most recently dispatched tool.
Used to detect runs of the same tool for the anti-spiral primitive. Reset to "" when a different tool runs. (Demo ask #5, v2.1.0)
int entropic::LoopContext::consecutive_same_tool_calls
Count of CONSECUTIVE successful calls to the same tool (last_tool_name).
Reset to 0 when a different tool runs. Compared against LoopConfig::max_consecutive_same_tool. (Demo ask #5, v2.1.0)
int entropic::LoopContext::budget_tokens_since_tool
gh#80 (v2.5.0): tokens generated since the last tool call (mode tokens ).
Reset to 0 whenever a tool call is dispatched.
double entropic::LoopContext::budget_window_start_s
gh#80 (v2.5.0): wall-clock epoch-seconds marking the start of the current tool-call-free window (mode wall_clock ).
0.0 means "no open window" — set on the first tool-call-free generation, reset to 0.0 on any tool call.
bool entropic::LoopContext::budget_completion_nudged
gh#80 (v2.5.0): true once the engine has emitted the "emit completion now" nudge for the current budget window.
The next exhaustion without a tool call escalates to a hard cut. Reset to false on any tool call.
std::string entropic::LoopContext::last_failed_delegation_target
gh#64: target tier of the most recent FAILED delegation ( DelegationResult.success == false).
Empty when last delegation succeeded, no delegation has run, or a non-delegation tool ran.
int entropic::LoopContext::consecutive_failed_delegations
gh#64: count of consecutive failed delegations against last_failed_delegation_target.
Reset on success or target switch (intentionally NOT reset on a non-delegation tool call — if a lead reads files between two attempts at the same failing target, we still want to enforce the cap). Compared against LoopConfig::max_consecutive_failed_delegations.
entropic::LoopMetrics
Metrics collected during loop execution.
int entropic::LoopMetrics::iterations
Total iterations completed.
int entropic::LoopMetrics::tool_calls
Total tool calls executed.
int entropic::LoopMetrics::tokens_used
Total tokens consumed.
int entropic::LoopMetrics::errors
Total errors encountered.
double entropic::LoopMetrics::start_time
Loop start (seconds since epoch)
double entropic::LoopMetrics::end_time
Loop end (seconds since epoch)
int entropic::LoopMetrics::duration_ms() const
Get loop duration in milliseconds.
- Returns
- Duration in ms.
- Duration in ms (end_time - start_time) * 1000.
entropic::PendingDelegation
Pending single delegation (stored by dir_delegate handler).
std::string entropic::PendingDelegation::target
Target tier name.
std::string entropic::PendingDelegation::task
Task description.
int entropic::PendingDelegation::max_turns
Max turns for child (-1 = default)
std::string entropic::PendingDelegation::resume_from_delegation_id
gh#32 (v2.1.6): empty = cold start
std::vector<ContextRef> entropic::PendingDelegation::context
gh#162 (v2.13.0): file references the lead already earned, seeded into the child's opening message as references (not excerpts).
bool entropic::PendingDelegation::resume_by_target
gh#162 (v2.13.0): resume the latest delegation to target .
The engine resolves the storage id at admission.
entropic::PendingPipeline
Pending multi-stage pipeline (stored by dir_pipeline handler).
std::vector<std::string> entropic::PendingPipeline::stages
Tier names in order.
std::string entropic::PendingPipeline::task
Task description.
std::vector<ContextRef> entropic::PendingPipeline::context
gh#162 (v2.13.0): seeded file references
entropic::PermissionPersistInterface
Permission persistence interface.
PermissionPersistFn entropic::PermissionPersistInterface::persist
Persist callback.
void* entropic::PermissionPersistInterface::user_data
Opaque pointer.
entropic::SessionRootInterface
Where a session's tools live, and what it can reach (gh#160).
std::filesystem::path(* entropic::SessionRootInterface::resolve_root) (const std::string &session_key, void *user_data)
Root directory this session's MCP tools resolve against.
- Parameters
session_key— Caller-scoped session key ("" = default session).user_data— Opaque pointer (facade handle).
- Returns
- Absolute root, or empty when none is configured.
std::vector< std::string >(* entropic::SessionRootInterface::unsafe_external_tools) (const std::string &session_key, const std::vector< std::string > &allowed_tools, void *user_data)
Child-visible EXTERNAL tools that are not declared read-only.
An external (stdio/SSE) MCP server is a separate process with its own cwd; nothing the engine does can move it into a sandbox. If the child can call one that may write, the isolation guarantee is false, so the delegation is refused rather than silently downgraded.
- Parameters
session_key— Session the delegation runs under.allowed_tools— Child's tool allow-list (empty = everything).user_data— Opaque pointer (facade handle).
- Returns
- Fully-qualified names of tools lacking readOnlyHint: true.
void* entropic::SessionRootInterface::user_data
Opaque pointer (facade context)
entropic::StorageInterface
Storage interface for conversation persistence.
bool(* entropic::StorageInterface::create_conversation) (const char *title, std::string &conversation_id, void *user_data)
Create a root conversation row.
Called once at AgentEngine::run() init when storage is wired so the engine's LoopContext::conversation_id is populated for the rest of the session. Pre-v2.1.12 (gh#48): no callback existed, root conversation_id stayed empty, every delegation's foreign-key insert into delegations(parent_conversation_id) failed silently against the empty parent string.
- Parameters
title— Display title (e.g., session description).conversation_idout — Newly created conversation ID.user_data— Opaque pointer.
- Returns
- true on success and conversation_id populated.
bool(* entropic::StorageInterface::save_snapshot) (const char *conversation_id, const char *messages_json, void *user_data)
Save a compaction snapshot (full history before compaction).
- Parameters
conversation_id— Conversation to snapshot.messages_json— JSON array of all messages.user_data— Opaque pointer.
- Returns
- true on success.
bool(* entropic::StorageInterface::create_delegation) (const char *parent_id, const char *delegating_tier, const char *target_tier, const char *task, int max_turns, std::string &delegation_id, std::string &child_conversation_id, void *user_data)
Create a delegation record with child conversation.
- Parameters
parent_id— Parent conversation ID.delegating_tier— Source tier.target_tier— Target tier.task— Task description.max_turns— Turn limit (0 = unlimited).delegation_idout — Created delegation ID.child_conversation_idout — Created child conversation ID.user_data— Opaque pointer.
- Returns
- true on success.
bool(* entropic::StorageInterface::complete_delegation) (const char *delegation_id, const char *status, const char *summary, void *user_data)
Complete a delegation record.
- Parameters
delegation_id— Delegation ID.status— "completed" or "failed".summary— Result summary (may be nullptr).user_data— Opaque pointer.
- Returns
- true on success.
bool(* entropic::StorageInterface::save_conversation) (const char *conversation_id, const char *messages_json, void *user_data)
Save messages to a conversation.
- Parameters
conversation_id— Conversation ID.messages_json— JSON array of message objects.user_data— Opaque pointer.
- Returns
- true on success.
bool(* entropic::StorageInterface::load_delegation_with_messages) (const char *delegation_id, std::string &result_json, void *user_data)
Load a delegation's full child conversation (gh#32, v2.1.6).
Resolves the delegation by id, then loads the child conversation it spawned. Returns a JSON object whose top-level fields include target_tier, messages (array), and delegation_id. The engine uses this on resume_delegation to seed a fresh child context with the prior conversation history.
- Parameters
delegation_id— Delegation id (storage PK).result_jsonout — Conversation JSON (target_tier + messages).user_data— Opaque pointer (storage backend).
- Returns
- true on success and the delegation+conversation were found.
bool(* entropic::StorageInterface::latest_delegation_for_target) (const char *target_tier, std::string &delegation_id, void *user_data)
Most recent COMPLETED delegation to a tier (gh#162, v2.13.0).
Backs entropic.resume_delegation's target form: the lead names the specialist, not a storage id it would have to fetch first.
- Parameters
target_tier— Tier to search for.delegation_idout — Resolved id on success.user_data— Opaque pointer (storage backend).
- Returns
- true when a completed delegation to that tier exists.
void* entropic::StorageInterface::user_data
Opaque pointer (storage backend)
entropic::TierResolutionInterface
Tier resolution callbacks for delegation and auto-chain.
ChildContextInfo(* entropic::TierResolutionInterface::resolve_tier) (const std::string &tier_name, void *user_data)
Build context info for a child delegation to the given tier.
std::string(* entropic::TierResolutionInterface::get_tier_param) (const std::string &tier_name, const std::string ¶m_name, void *user_data)
Get a string parameter from tier identity frontmatter.
- Returns
- Parameter value, or empty string if not found.
std::vector< std::string >(* entropic::TierResolutionInterface::get_handoff_targets) (const std::string &tier_name, void *user_data)
Get valid handoff targets from a tier.
bool(* entropic::TierResolutionInterface::tier_exists) (const std::string &tier_name, void *user_data)
Check if a tier exists in the configuration.
void* entropic::TierResolutionInterface::user_data
Opaque pointer (facade context)
entropic::ToolExecutionInterface
Tool execution interface for the engine.
ToolExecutionFn entropic::ToolExecutionInterface::process_tool_calls
Dispatches tool calls.
void* entropic::ToolExecutionInterface::user_data
Opaque pointer (ToolExecutor*)
char *(* entropic::ToolExecutionInterface::history_json) (size_t count, void *user_data)
Optional: return a compact JSON summary of recent tool calls (for validator retry enrichment / diagnostics).
Caller owns the returned C string (free via ToolExecutionFree). Nullptr means the executor has no history surface. (P1-11, 2.0.6-rc16)
void(* entropic::ToolExecutionInterface::free_fn) (char *)
Free function for strings returned by history_json.
entropic::ToolExecutorHooks
Engine-level hooks called during tool processing.
void(* entropic::ToolExecutorHooks::after_tool) (LoopContext &ctx, void *user_data)
Called after each tool execution.
DirectiveResult(* entropic::ToolExecutorHooks::process_directives) (LoopContext &ctx, const std::vector< const Directive * > &directives, void *user_data)
Process directives from tool results.
void* entropic::ToolExecutorHooks::user_data
Opaque pointer for hooks.
entropic::WorkspacePrompts
One workspace's assembled system prompts (gh#179, v2.14.0).
std::string entropic::WorkspacePrompts::default_prompt
Untiered first turn.
std::unordered_map<std::string, std::string> entropic::WorkspacePrompts::tier_prompts
Tier → system prompt.