Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::ModelsConfig Struct Reference

Configuration for all models (tiers + router). More...

#include <entropic/types/config.h>

Public Member Functions

std::string find_tier_by_path (const std::filesystem::path &model_path) const
 Find tier name by model path.
 

Public Attributes

std::unordered_map< std::string, TierConfig > tiers
 Tier name → config.
 
std::optional< ModelConfig > router
 Router model (separate from tiers)
 
std::string default_tier = "lead"
 Default tier name.
 
bool defer_load = false
 Defer the default tier's model load to first use (gh#157).
 

Detailed Description

Configuration for all models (tiers + router).

Version
1.8.1

Definition at line 689 of file config.h.

Member Function Documentation

◆ find_tier_by_path()

std::string entropic::ModelsConfig::find_tier_by_path ( const std::filesystem::path &  model_path) const
inline

Find tier name by model path.

Iterates tiers to find one whose resolved path matches. Returns empty string if no tier uses the given path.

Parameters
model_pathModel file path to match.
Returns
Tier name, or empty string if not found. @utility
Version
2.0.1

Definition at line 723 of file config.h.

Member Data Documentation

◆ default_tier

std::string entropic::ModelsConfig::default_tier = "lead"

Default tier name.

Definition at line 692 of file config.h.

◆ defer_load

bool entropic::ModelsConfig::defer_load = false

Defer the default tier's model load to first use (gh#157).

false (default) keeps the pre-2.13.0 behaviour exactly: the default tier is loaded and activated during entropic_configure*. true leaves it COLD until the first thing that needs it asks — a generation, or any of the evaluation / state APIs — at which point it loads through the same residency gate and fires the same ENTROPIC_RESIDENCY_LOADED event as a mid-session tier swap.

This is a NEW key rather than a meaning for keep_warm (which governs swap-out, not startup, and defaults to false): reusing it would have made every existing consumer lazy without their asking — a behaviour change disguised as a doc fix.

YAML key: models.defer_load
Version
2.13.0

Definition at line 710 of file config.h.

◆ router

std::optional<ModelConfig> entropic::ModelsConfig::router

Router model (separate from tiers)

Definition at line 691 of file config.h.

◆ tiers

std::unordered_map<std::string, TierConfig> entropic::ModelsConfig::tiers

Tier name → config.

Definition at line 690 of file config.h.


The documentation for this struct was generated from the following file: