20namespace entropic::config {
32ENTROPIC_EXPORT std::string
validate(
const ModelConfig& config);
43ENTROPIC_EXPORT std::string
validate(
const ModelsConfig& config);
56ENTROPIC_EXPORT std::string
validate(
const CompactionConfig& config);
70 const RoutingConfig& routing,
71 const ModelsConfig& models);
82ENTROPIC_EXPORT std::string
validate(
const PromptCacheConfig& config);
95 const ParsedConfig& config,
96 std::vector<std::string>& warnings);
105 const std::vector<std::string>& tools);
115 const std::string& fallback,
116 const std::unordered_map<std::string, TierConfig>& tiers);
126 const std::unordered_map<std::string, std::string>& tier_map,
127 const std::unordered_map<std::string, TierConfig>& tiers);
137 const std::unordered_map<std::string, std::vector<std::string>>& rules,
138 const std::unordered_map<std::string, TierConfig>& tiers);
148 const std::unordered_map<std::string, TierConfig>& tiers,
149 const std::unordered_map<std::string, std::vector<std::string>>& handoff_rules);
Configuration structs with defaults.
Symbol visibility macro for all exported symbols.
ENTROPIC_EXPORT std::string 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 validate_routing(const RoutingConfig &routing, const ModelsConfig &models)
Validate RoutingConfig against defined tiers.
ENTROPIC_EXPORT std::string 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 validate_config(const ParsedConfig &config, std::vector< std::string > &warnings)
Validate the full ParsedConfig.
ENTROPIC_EXPORT std::string 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 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 validate(const ModelConfig &config)
Validate a ModelConfig.
ENTROPIC_EXPORT std::string validate_allowed_tools(const std::vector< std::string > &tools)
Validate allowed_tools entries use "server.tool" format.