Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
validate.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
13#pragma once
14
17#include <string>
18#include <vector>
19
20namespace entropic::config {
21
32ENTROPIC_EXPORT std::string validate(const ModelConfig& config);
33
43ENTROPIC_EXPORT std::string validate(const ModelsConfig& config);
44
56ENTROPIC_EXPORT std::string validate(const CompactionConfig& config);
57
69ENTROPIC_EXPORT std::string validate_routing(
70 const RoutingConfig& routing,
71 const ModelsConfig& models);
72
82ENTROPIC_EXPORT std::string validate(const PromptCacheConfig& config);
83
94ENTROPIC_EXPORT std::string validate_config(
95 const ParsedConfig& config,
96 std::vector<std::string>& warnings);
97
104ENTROPIC_EXPORT std::string validate_allowed_tools(
105 const std::vector<std::string>& tools);
106
114ENTROPIC_EXPORT std::string validate_fallback_tier(
115 const std::string& fallback,
116 const std::unordered_map<std::string, TierConfig>& tiers);
117
125ENTROPIC_EXPORT std::string validate_tier_map(
126 const std::unordered_map<std::string, std::string>& tier_map,
127 const std::unordered_map<std::string, TierConfig>& tiers);
128
136ENTROPIC_EXPORT std::string validate_handoff_rules(
137 const std::unordered_map<std::string, std::vector<std::string>>& rules,
138 const std::unordered_map<std::string, TierConfig>& tiers);
139
147ENTROPIC_EXPORT std::string warn_auto_chain_without_targets(
148 const std::unordered_map<std::string, TierConfig>& tiers,
149 const std::unordered_map<std::string, std::vector<std::string>>& handoff_rules);
150
151} // namespace entropic::config
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.
Definition validate.cpp:164
ENTROPIC_EXPORT std::string validate_routing(const RoutingConfig &routing, const ModelsConfig &models)
Validate RoutingConfig against defined tiers.
Definition validate.cpp:191
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.
Definition validate.cpp:143
ENTROPIC_EXPORT std::string validate_config(const ParsedConfig &config, std::vector< std::string > &warnings)
Validate the full ParsedConfig.
Definition validate.cpp:296
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.
Definition validate.cpp:125
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.
Definition validate.cpp:223
ENTROPIC_EXPORT std::string validate(const ModelConfig &config)
Validate a ModelConfig.
Definition validate.cpp:40
ENTROPIC_EXPORT std::string validate_allowed_tools(const std::vector< std::string > &tools)
Validate allowed_tools entries use "server.tool" format.
Definition validate.cpp:22