Model resolution (from oh-my-openagent/model-core): 6-step priority resolution pipeline (UI select -> user config -> category default -> user fallback -> policy chain -> system default), provider fallback chains, fuzzy model matching, error classification, provider-specific model ID transforms. 14 files, zero runtime deps. Multi-batch matcher (from boocontext-audit): 6 batch types (Observational, Actionable, PreviouslyApplied, Disambiguation, ResponseAnalysis, LowCriticality) for behavioral guideline evaluation. RelationalResolver with iterative convergence (DEPENDS_ON, PRIORITIZES, ENTAILS, TAG_ALL, TAG_PRIORITIZES). SchematicGenerator abstract class with retry and execution plans. 4 files.
28 lines
771 B
TypeScript
28 lines
771 B
TypeScript
export interface ModelMetadata {
|
|
readonly id: string
|
|
readonly provider?: string
|
|
readonly context?: number
|
|
readonly output?: number
|
|
readonly name?: string
|
|
readonly variants?: Record<string, unknown>
|
|
readonly limit?: {
|
|
readonly context?: number
|
|
readonly input?: number
|
|
readonly output?: number
|
|
}
|
|
readonly modalities?: {
|
|
readonly input?: string[]
|
|
readonly output?: string[]
|
|
}
|
|
readonly capabilities?: Record<string, unknown>
|
|
readonly reasoning?: boolean
|
|
readonly temperature?: boolean
|
|
readonly tool_call?: boolean
|
|
readonly [key: string]: unknown
|
|
}
|
|
|
|
export interface ProviderCache {
|
|
readConnectedProvidersCache(): string[] | null
|
|
findProviderModelMetadata(providerID: string, modelID: string): ModelMetadata | undefined
|
|
}
|