20namespace entropic::config {
33ENTROPIC_EXPORT std::string
validate(
const ModelConfig& config);
45ENTROPIC_EXPORT std::string
validate(
const ModelsConfig& config);
59ENTROPIC_EXPORT std::string
validate(
const CompactionConfig& config);
74 const RoutingConfig& routing,
75 const ModelsConfig& models);
87ENTROPIC_EXPORT std::string
validate(
const PromptCacheConfig& config);
101 const ParsedConfig& config,
102 std::vector<std::string>& warnings);
112 const std::vector<std::string>& tools);
123 const std::string& fallback,
124 const std::unordered_map<std::string, TierConfig>& tiers);
135 const std::unordered_map<std::string, std::string>& tier_map,
136 const std::unordered_map<std::string, TierConfig>& tiers);
147 const std::unordered_map<std::string, std::vector<std::string>>& rules,
148 const std::unordered_map<std::string, TierConfig>& tiers);
159 const std::unordered_map<std::string, TierConfig>& tiers,
160 const std::unordered_map<std::string, std::vector<std::string>>& handoff_rules);
179 const ParsedConfig& config,
180 const std::filesystem::path& data_dir);
217 const ParsedConfig& config,
218 const std::vector<std::filesystem::path>& search_dirs);
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 warn_unresolved_tier_grammars(const ParsedConfig &config, const std::vector< std::filesystem::path > &search_dirs)
Warn about a tier whose grammar: stem resolves to no .gbnf (gh#154).
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.
ENTROPIC_EXPORT std::vector< std::filesystem::path > grammar_search_paths(const ParsedConfig &config, const std::filesystem::path &data_dir)
The directories a bare grammar stem is looked up in (gh#154).