import type { CodaliRuntimeAgentInput } from "../runtime/CodaliRuntime.js"; import type { CodaliAgentRolePolicy, CodaliAgentTierPolicy, CodaliGatewayModelTier } from "./CodaliGatewayTypes.js"; export type CodaliGatewayAgentSource = "local" | "self_hosted" | "worker" | "cloud" | "unknown"; export type CodaliGatewayAgentHealth = "healthy" | "degraded" | "unreachable" | "limited" | "unknown"; export interface CodaliGatewayAgentCandidate { id?: string; slug: string; adapter: string; provider?: string; model: string; baseUrl?: string; runnerKind?: string; source: CodaliGatewayAgentSource; healthStatus: CodaliGatewayAgentHealth; latencyMs?: number; contextWindow?: number; maxOutputTokens?: number; supportsTools?: boolean; supportsJsonSchema?: boolean; supportsImageGeneration?: boolean; supportsArtifacts?: boolean; supportsStreaming?: boolean; capabilities: string[]; bestUsage?: string; rating?: number; reasoningRating?: number; costPerMillion?: number; maxComplexity?: number; tier: CodaliGatewayModelTier; raw?: unknown; } export interface CodaliGatewayAgentCandidateDiagnostic { role: string; slug: string; tier: CodaliGatewayModelTier; source: CodaliGatewayAgentSource; eligible: boolean; score?: number; reasons: string[]; } export interface CodaliGatewayAgentTierError { code: string; message: string; role?: string; details?: Record; } export interface CodaliGatewayAgentAssignment { role: string; policy: CodaliAgentRolePolicy; candidate: CodaliGatewayAgentCandidate; agent: CodaliRuntimeAgentInput; score: number; reasons: string[]; } export interface AgentTierResolverInput { inventory: unknown[]; agentPolicy?: CodaliAgentTierPolicy; roles?: string[]; allowImageWorker?: boolean; } export interface AgentTierResolution { ok: boolean; assignments: Record; candidates: CodaliGatewayAgentCandidate[]; diagnostics: CodaliGatewayAgentCandidateDiagnostic[]; warnings: CodaliGatewayAgentTierError[]; errors: CodaliGatewayAgentTierError[]; } export declare const DEFAULT_CODALI_GATEWAY_AGENT_ROLES: readonly ["classifier", "planner", "rag_worker", "tool_worker", "verifier", "context_refiner", "final_synthesizer"]; export declare const DEFAULT_CODALI_GATEWAY_ROLE_POLICIES: Record; export declare const normalizeCodaliGatewayAgentCandidate: (input: unknown) => CodaliGatewayAgentCandidate | undefined; export declare const resolveCodaliGatewayAgentTiers: (input: AgentTierResolverInput) => AgentTierResolution; export declare const resolveGatewayAgentTiers: (input: AgentTierResolverInput) => AgentTierResolution; //# sourceMappingURL=AgentTierResolver.d.ts.map