mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
20 lines • 1.26 kB
JavaScript
// Data-driven configuration for model compatibility scoring
// Models are now loaded from YAML for easier maintenance
// See: https://docs.github.com/en/copilot/reference/ai-models/model-comparison#recommended-models-by-task
import { PROVIDER_ENUM_VALUES, } from "./generated/provider-enum.js";
import { getBudgetAdjustments, getBudgetBonus, getBudgetPenalty, getCapabilityWeights, getDefaultModel, getDefaultModelSlug, getModels, getRequirementKeywords, } from "./model-loader.js";
// Export models and configuration from YAML
export const MODELS = getModels();
export const REQUIREMENT_KEYWORDS = getRequirementKeywords();
export const CAPABILITY_WEIGHTS = getCapabilityWeights();
export const BUDGET_ADJUSTMENTS = getBudgetAdjustments();
export const BUDGET_BONUS = getBudgetBonus();
export const BUDGET_PENALTY = getBudgetPenalty();
export const DEFAULT_MODEL = getDefaultModel();
// Get the default model slug and validate it against the ProviderEnum
const defaultSlug = getDefaultModelSlug();
if (!PROVIDER_ENUM_VALUES.includes(defaultSlug)) {
throw new Error(`Invalid default model slug "${defaultSlug}". Must be one of: ${PROVIDER_ENUM_VALUES.join(", ")}`);
}
export const DEFAULT_MODEL_SLUG = defaultSlug;
//# sourceMappingURL=model-config.js.map