|
Entropic 2.3.8
Local-first agentic inference engine
|
Config validation implementation. More...

Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| ENTROPIC_EXPORT std::string | entropic::config::validate_allowed_tools (const std::vector< std::string > &tools) |
| Validate allowed_tools entries use "server.tool" format. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate (const ModelConfig &config) |
| Validate a ModelConfig. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate (const ModelsConfig &config) |
| Validate ModelsConfig. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate (const CompactionConfig &config) |
| Validate CompactionConfig. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate_fallback_tier (const std::string &fallback, const std::unordered_map< std::string, TierConfig > &tiers) |
| Check fallback_tier exists in tiers. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate_tier_map (const std::unordered_map< std::string, std::string > &tier_map, const std::unordered_map< std::string, TierConfig > &tiers) |
| Check all tier_map values exist in tiers. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate_handoff_rules (const std::unordered_map< std::string, std::vector< std::string > > &rules, const std::unordered_map< std::string, TierConfig > &tiers) |
| Check all handoff_rules keys and values exist in tiers. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate_routing (const RoutingConfig &routing, const ModelsConfig &models) |
| Validate RoutingConfig against defined tiers. | |
| ENTROPIC_EXPORT std::string | entropic::config::warn_auto_chain_without_targets (const std::unordered_map< std::string, TierConfig > &tiers, const std::unordered_map< std::string, std::vector< std::string > > &handoff_rules) |
| Warn if tier has auto_chain but no handoff_rules entry. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate (const PromptCacheConfig &config) |
| Validate PromptCacheConfig. | |
| static std::string | entropic::config::validate_model_tiers (const ModelsConfig &models) |
| Validate model tiers and router. | |
| ENTROPIC_EXPORT std::string | entropic::config::validate_config (const ParsedConfig &config, std::vector< std::string > &warnings) |
| Validate the full ParsedConfig. | |
Variables | |
| static auto | s_log = entropic::log::get("config") |
| std::string entropic::config::validate | ( | const CompactionConfig & | config | ) |
Validate CompactionConfig.
Checks: warning_threshold_percent < threshold_percent, threshold_percent in [0.5, 0.99], preserve_recent_turns in [1, 10].
| config | Compaction config to validate. |
| config | Compaction config to validate. |
Definition at line 83 of file validate.cpp.
| std::string entropic::config::validate | ( | const ModelConfig & | config | ) |
Validate a ModelConfig.
Checks: context_length range [512, 131072], adapter non-empty, allowed_tools entries use "server.tool" format.
| config | Model config to validate. |
| config | Model config to validate. |
Definition at line 40 of file validate.cpp.
| std::string entropic::config::validate | ( | const ModelsConfig & | config | ) |
Validate ModelsConfig.
Checks: default tier exists in tiers dict.
| config | Models config to validate. |
| config | Models config to validate. |
Definition at line 66 of file validate.cpp.
| std::string entropic::config::validate | ( | const PromptCacheConfig & | config | ) |
Validate PromptCacheConfig.
Checks: max_bytes > 0 when enabled.
| config | Prompt cache config to validate. |
| config | Prompt cache config to validate. |
Definition at line 249 of file validate.cpp.
| std::string entropic::config::validate_allowed_tools | ( | const std::vector< std::string > & | tools | ) |
Validate allowed_tools entries use "server.tool" format.
| tools | Tool name list to validate. |
| tools | Tool name list to validate. |
Definition at line 22 of file validate.cpp.
| std::string entropic::config::validate_config | ( | const ParsedConfig & | config, |
| std::vector< std::string > & | warnings | ||
| ) |
Validate the full ParsedConfig.
Runs all section validators + cross-section checks.
| config | Full config to validate. | |
| [out] | warnings | Non-fatal warnings (e.g., auto_chain without targets). |
| config | Full config to validate. | |
| [out] | warnings | Non-fatal warnings. |
Definition at line 296 of file validate.cpp.
| std::string entropic::config::validate_fallback_tier | ( | const std::string & | fallback, |
| const std::unordered_map< std::string, TierConfig > & | tiers | ||
| ) |
Check fallback_tier exists in tiers.
| fallback | Fallback tier name. |
| tiers | Defined tiers. |
| fallback | Fallback tier name. |
| tiers | Defined tiers. |
Definition at line 125 of file validate.cpp.
| std::string entropic::config::validate_handoff_rules | ( | const std::unordered_map< std::string, std::vector< std::string > > & | rules, |
| const std::unordered_map< std::string, TierConfig > & | tiers | ||
| ) |
Check all handoff_rules keys and values exist in tiers.
| rules | Handoff rules. |
| tiers | Defined tiers. |
| rules | Handoff rules. |
| tiers | Defined tiers. |
Definition at line 164 of file validate.cpp.
|
static |
Validate model tiers and router.
| models | Models config. |
Definition at line 264 of file validate.cpp.
| std::string entropic::config::validate_routing | ( | const RoutingConfig & | routing, |
| const ModelsConfig & | models | ||
| ) |
Validate RoutingConfig against defined tiers.
Cross-field: fallback_tier, tier_map values, handoff_rules keys and values must all reference tiers that exist.
| routing | Routing config. |
| models | Models config (provides tier names). |
| routing | Routing config. |
| models | Models config. |
Definition at line 191 of file validate.cpp.
| std::string entropic::config::validate_tier_map | ( | const std::unordered_map< std::string, std::string > & | tier_map, |
| const std::unordered_map< std::string, TierConfig > & | tiers | ||
| ) |
Check all tier_map values exist in tiers.
| tier_map | Classification to tier mapping. |
| tiers | Defined tiers. |
| tier_map | Classification to tier mapping. |
| tiers | Defined tiers. |
Definition at line 143 of file validate.cpp.
| std::string entropic::config::warn_auto_chain_without_targets | ( | const std::unordered_map< std::string, TierConfig > & | tiers, |
| const std::unordered_map< std::string, std::vector< std::string > > & | handoff_rules | ||
| ) |
Warn if tier has auto_chain but no handoff_rules entry.
| tiers | Tier configs. |
| handoff_rules | Handoff rules from routing config. |
| tiers | Tier configs. |
| handoff_rules | Handoff rules. |
Definition at line 223 of file validate.cpp.
|
static |
Definition at line 11 of file validate.cpp.