@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
480 lines (479 loc) • 22.1 kB
TypeScript
/**
* zod validator for provider rules files (`src/lib/providers/rules/*.json`).
* Mirrors `ProviderRulesFile` in src/lib/types/providerRules.ts with strict
* objects (an unknown key is an authoring mistake) plus the cross-field
* checks the plain types cannot express.
*/
import { z } from "zod";
export declare const providerRulesFileSchema: z.ZodObject<{
$schema: z.ZodOptional<z.ZodString>;
id: z.ZodString;
errors: z.ZodOptional<z.ZodObject<{
statusFrom: z.ZodOptional<z.ZodEnum<{
"cause-chain": "cause-chain";
"top-level": "top-level";
}>>;
messageFrom: z.ZodOptional<z.ZodEnum<{
"top-level": "top-level";
composed: "composed";
}>>;
timeout: z.ZodOptional<z.ZodObject<{
class: z.ZodEnum<{
provider: "provider";
authentication: "authentication";
"rate-limit": "rate-limit";
"invalid-model": "invalid-model";
network: "network";
}>;
message: z.ZodString;
}, z.core.$strict>>;
useDefaults: z.ZodOptional<z.ZodBoolean>;
rules: z.ZodArray<z.ZodObject<{
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
statusRange: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
messageStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
errorName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
errorCode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
bodyErrorType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
always: z.ZodOptional<z.ZodLiteral<true>>;
pattern: z.ZodOptional<z.ZodString>;
allPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
notPattern: z.ZodOptional<z.ZodString>;
caseSensitive: z.ZodOptional<z.ZodBoolean>;
searchResponseBody: z.ZodOptional<z.ZodBoolean>;
patternStatuses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
patternWhenNoStatus: z.ZodOptional<z.ZodBoolean>;
class: z.ZodEnum<{
provider: "provider";
authentication: "authentication";
"rate-limit": "rate-limit";
"invalid-model": "invalid-model";
network: "network";
}>;
message: z.ZodOptional<z.ZodString>;
messageWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
pattern: z.ZodString;
message: z.ZodString;
}, z.core.$strict>>>;
messageHook: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>>;
finishReasons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
map: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
default: z.ZodNullable<z.ZodString>;
whenAbsent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
defaultAtToolCap: z.ZodOptional<z.ZodString>;
passthroughUnknown: z.ZodOptional<z.ZodBoolean>;
lowercase: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>>>;
usage: z.ZodOptional<z.ZodObject<{
input: z.ZodString;
output: z.ZodString;
total: z.ZodOptional<z.ZodString>;
cacheRead: z.ZodOptional<z.ZodString>;
reasoning: z.ZodOptional<z.ZodString>;
reasoningInOutput: z.ZodBoolean;
}, z.core.$strict>>;
usageDialects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
input: z.ZodArray<z.ZodString>;
output: z.ZodArray<z.ZodString>;
total: z.ZodArray<z.ZodString>;
pick: z.ZodEnum<{
truthy: "truthy";
defined: "defined";
}>;
}, z.core.$strict>>>;
usageFields: z.ZodOptional<z.ZodObject<{
input: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
output: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
total: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
reasoning: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
cacheCreation: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
cacheRead: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
cacheReadIncludedInInput: z.ZodObject<{
paths: z.ZodArray<z.ZodString>;
positiveOnly: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
}, z.core.$strict>>;
contextWindows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
contextWindowNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
providerAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
outputTokenLimits: z.ZodOptional<z.ZodObject<{
tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
default: z.ZodNumber;
providerTables: z.ZodRecord<z.ZodString, z.ZodString>;
inferenceProfileTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>>;
outputTokenLimitNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
descriptors: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
aliases: z.ZodArray<z.ZodString>;
inferenceKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
stream: "stream";
generate: "generate";
decide: "decide";
transcribe: "transcribe";
}>>>;
credentialsKey: z.ZodString;
envVars: z.ZodObject<{
apiKey: z.ZodOptional<z.ZodString>;
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString>>;
baseURL: z.ZodOptional<z.ZodString>;
baseURLFallbacks: z.ZodOptional<z.ZodArray<z.ZodString>>;
model: z.ZodOptional<z.ZodString>;
modelFallbacks: z.ZodOptional<z.ZodArray<z.ZodString>>;
extraRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
extraRequiredFallbacks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
extraRequiredCredentialFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
optional: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
defaultModel: z.ZodOptional<z.ZodString>;
defaultModelFrom: z.ZodOptional<z.ZodString>;
toolSupport: z.ZodEnum<{
"model-dependent": "model-dependent";
none: "none";
native: "native";
"prompt-only": "prompt-only";
}>;
wire: z.ZodOptional<z.ZodLiteral<"openai-chat">>;
localRuntime: z.ZodBoolean;
healthCheck: z.ZodEnum<{
"env-only": "env-only";
"models-probe": "models-probe";
"live-generate": "live-generate";
}>;
defaultHealthSweepPriority: z.ZodOptional<z.ZodNumber>;
excludeFromHealthSweep: z.ZodOptional<z.ZodLiteral<true>>;
autoSelectPreference: z.ZodOptional<z.ZodNumber>;
setupUrl: z.ZodOptional<z.ZodString>;
timeouts: z.ZodOptional<z.ZodObject<{
generateMs: z.ZodOptional<z.ZodNumber>;
streamMs: z.ZodOptional<z.ZodNumber>;
decideMs: z.ZodOptional<z.ZodNumber>;
decideMsPerKStateTokens: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
decisionLimits: z.ZodOptional<z.ZodObject<{
maxStateTokens: z.ZodNumber;
maxQuestions: z.ZodOptional<z.ZodNumber>;
questionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
boolean: "boolean";
value: "value";
choice: "choice";
score: "score";
"choice-unknown": "choice-unknown";
}>>>;
maxScoreLevels: z.ZodOptional<z.ZodNumber>;
maxChoiceOptions: z.ZodOptional<z.ZodNumber>;
nonAsciiTokensPerChar: z.ZodOptional<z.ZodNumber>;
digitTokensPerChar: z.ZodOptional<z.ZodNumber>;
symbolTokensPerChar: z.ZodOptional<z.ZodNumber>;
astralTokensPerChar: z.ZodOptional<z.ZodNumber>;
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
maxStateTokens: z.ZodNumber;
nonAsciiTokensPerChar: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>>;
media: z.ZodOptional<z.ZodObject<{
maxImages: z.ZodNumber;
video: z.ZodBoolean;
maxRequestBytes: z.ZodNumber;
audio: z.ZodOptional<z.ZodObject<{
maxSeconds: z.ZodNumber;
}, z.core.$strict>>;
}, z.core.$strict>>;
advisory: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>>;
decideOrder: z.ZodOptional<z.ZodNumber>;
ambientKeyGuard: z.ZodOptional<z.ZodObject<{
baseURLEnvVars: z.ZodArray<z.ZodString>;
trustedOrigins: z.ZodArray<z.ZodString>;
credentialBaseURLs: z.ZodOptional<z.ZodArray<z.ZodObject<{
key: z.ZodString;
field: z.ZodLiteral<"baseURL">;
}, z.core.$strict>>>;
}, z.core.$strict>>;
autoSelectPriority: z.ZodOptional<z.ZodNumber>;
apiKeyFormat: z.ZodOptional<z.ZodString>;
credentialsResolvedExternally: z.ZodOptional<z.ZodBoolean>;
hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
availabilityProbe: z.ZodOptional<z.ZodLiteral<"service">>;
liveStatusCheck: z.ZodOptional<z.ZodLiteral<false>>;
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strict>>>;
descriptorNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
traitLists: z.ZodOptional<z.ZodObject<{
costEfficient: z.ZodOptional<z.ZodArray<z.ZodString>>;
openWeights: z.ZodOptional<z.ZodArray<z.ZodString>>;
noTextOutput: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>>;
retryPolicies: z.ZodOptional<z.ZodObject<{
tables: z.ZodRecord<z.ZodString, z.ZodObject<{
maxAttempts: z.ZodNumber;
baseDelay: z.ZodNumber;
maxDelay: z.ZodNumber;
multiplier: z.ZodNumber;
}, z.core.$strict>>;
default: z.ZodObject<{
maxAttempts: z.ZodNumber;
baseDelay: z.ZodNumber;
maxDelay: z.ZodNumber;
multiplier: z.ZodNumber;
}, z.core.$strict>;
providerTables: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
retryPolicyNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
credentialChecks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
huggingface: "huggingface";
mistral: "mistral";
none: "none";
anthropic: "anthropic";
vertex: "vertex";
aws: "aws";
openai: "openai";
azure: "azure";
"google-ai": "google-ai";
}>>>;
modelTokenLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
input: z.ZodNumber;
output: z.ZodNumber;
}, z.core.$strict>>>;
usageRebase: z.ZodOptional<z.ZodObject<{
whenAnyPresent: z.ZodArray<z.ZodString>;
unlessAnyPresent: z.ZodArray<z.ZodString>;
uncachedInput: z.ZodString;
cacheWrite: z.ZodString;
}, z.core.$strict>>;
toolChoices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
modes: z.ZodObject<{
auto: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
none: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
required: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
}, z.core.$strict>;
acceptStrings: z.ZodBoolean;
acceptModeObjects: z.ZodBoolean;
tool: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
toolRequiresName: z.ZodBoolean;
passthroughStrings: z.ZodOptional<z.ZodBoolean>;
fallback: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
}, z.core.$strict>>>;
toolNames: z.ZodOptional<z.ZodObject<{
firstChars: z.ZodString;
allowedChars: z.ZodString;
maxLength: z.ZodNumber;
}, z.core.$strict>>;
modelFamilies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
caseSensitiveFamilies: z.ZodOptional<z.ZodArray<z.ZodString>>;
modelFamilyNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
imageLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>>;
imageLimitDefault: z.ZodOptional<z.ZodNumber>;
imageLimitNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
proxyProviders: z.ZodOptional<z.ZodArray<z.ZodString>>;
visionModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
visionModelNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
visionFamilies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
modelFamilyLabels: z.ZodOptional<z.ZodObject<{
rules: z.ZodArray<z.ZodObject<{
match: z.ZodString;
label: z.ZodString;
}, z.core.$strict>>;
default: z.ZodString;
}, z.core.$strict>>;
modelLists: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
modelListNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
outputTokenCeilings: z.ZodOptional<z.ZodObject<{
rules: z.ZodArray<z.ZodObject<{
match: z.ZodString;
value: z.ZodNumber;
}, z.core.$strict>>;
default: z.ZodNumber;
}, z.core.$strict>>;
outputTokenCeilingNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
reasoning: z.ZodOptional<z.ZodObject<{
defaultLevel: z.ZodString;
defaultBudgetTokens: z.ZodNumber;
levelFractions: z.ZodRecord<z.ZodString, z.ZodNumber>;
maxBudgetTokens: z.ZodObject<{
rules: z.ZodArray<z.ZodObject<{
match: z.ZodString;
value: z.ZodNumber;
}, z.core.$strict>>;
default: z.ZodNumber;
}, z.core.$strict>;
budgetRanges: z.ZodObject<{
rules: z.ZodArray<z.ZodObject<{
match: z.ZodString;
min: z.ZodNumber;
max: z.ZodNumber;
}, z.core.$strict>>;
fallback: z.ZodObject<{
min: z.ZodNumber;
max: z.ZodNumber;
}, z.core.$strict>;
}, z.core.$strict>;
restrictedOutputTokenLimit: z.ZodNumber;
unrequestedThinkingHeadroomTokens: z.ZodOptional<z.ZodNumber>;
unrequestedThinkingHeadroomBelowMaxTokens: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
reasoningNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
apiKeyFormats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
apiKeyLengths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
oauthTokenFormats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
credentialFormatNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
thinkingLimits: z.ZodOptional<z.ZodObject<{
minBudgetTokens: z.ZodNumber;
answerReserveTokens: z.ZodNumber;
}, z.core.$strict>>;
thinkingLimitNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
defaultModel: z.ZodOptional<z.ZodString>;
defaultModelNote: z.ZodOptional<z.ZodString>;
fallbackModel: z.ZodOptional<z.ZodString>;
fallbackModelNote: z.ZodOptional<z.ZodString>;
familyDefaultModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
familyDefaultModelNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
errorSignals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
errorSignalNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
requestDefaults: z.ZodOptional<z.ZodObject<{
temperature: z.ZodOptional<z.ZodNumber>;
largeOutputThresholdTokens: z.ZodOptional<z.ZodNumber>;
largeOutputTimeoutFloorMs: z.ZodOptional<z.ZodNumber>;
clientTimeoutMs: z.ZodOptional<z.ZodNumber>;
finalizationMinTokens: z.ZodOptional<z.ZodNumber>;
finalizationHeadroomTokens: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
requestDefaultNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
requestFields: z.ZodOptional<z.ZodObject<{
maxTokens: z.ZodString;
temperature: z.ZodString;
topP: z.ZodString;
stopSequences: z.ZodString;
presencePenalty: z.ZodOptional<z.ZodString>;
frequencyPenalty: z.ZodOptional<z.ZodString>;
seed: z.ZodOptional<z.ZodString>;
maxCompletionTokens: z.ZodOptional<z.ZodString>;
toolSchema: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
requestFieldRules: z.ZodOptional<z.ZodObject<{
omitWhileThinking: z.ZodOptional<z.ZodArray<z.ZodEnum<{
maxTokens: "maxTokens";
temperature: "temperature";
topP: "topP";
presencePenalty: "presencePenalty";
frequencyPenalty: "frequencyPenalty";
stopSequences: "stopSequences";
seed: "seed";
}>>>;
}, z.core.$strict>>;
requestFieldNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
toolResults: z.ZodOptional<z.ZodObject<{
errorTemplate: z.ZodString;
errorFlag: z.ZodString;
}, z.core.$strict>>;
contextTexts: z.ZodOptional<z.ZodObject<{
elisionNote: z.ZodString;
}, z.core.$strict>>;
finalResultTool: z.ZodOptional<z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
instructions: z.ZodObject<{
mustCall: z.ZodString;
callWhenReady: z.ZodString;
noLongerAvailable: z.ZodString;
}, z.core.$strict>;
}, z.core.$strict>>;
finalResultToolNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
topicNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
transport: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
defaultBaseURL: z.ZodOptional<z.ZodString>;
auth: z.ZodOptional<z.ZodObject<{
scheme: z.ZodEnum<{
bearer: "bearer";
header: "header";
}>;
header: z.ZodOptional<z.ZodString>;
clear: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>>;
}, z.core.$strict>>>;
vertexHosts: z.ZodOptional<z.ZodObject<{
global: z.ZodString;
regional: z.ZodString;
}, z.core.$strict>>;
healthCheckModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
healthCheckModelEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
cacheDurationsMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
anthropicCacheBreakpoints: z.ZodOptional<z.ZodObject<{
max: z.ZodNumber;
}, z.core.$strict>>;
toolSupportFallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
vertexLocation: z.ZodOptional<z.ZodObject<{
globalEnv: z.ZodString;
imageEnv: z.ZodString;
global: z.ZodString;
}, z.core.$strict>>;
vertexMaxTokensIssues: z.ZodOptional<z.ZodArray<z.ZodString>>;
imageModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
match: z.ZodString;
maxN: z.ZodNumber;
sizes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strict>>>>;
imageModelDefaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
maxN: z.ZodNumber;
size: z.ZodString;
}, z.core.$strict>>>;
imagePaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
match: z.ZodString;
path: z.ZodString;
}, z.core.$strict>>>>;
embeddingKinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
novaMultimodal: z.ZodObject<{
allOf: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
multimodal: z.ZodObject<{
anyOf: z.ZodArray<z.ZodString>;
exact: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
}, z.core.$strict>>>;
modelProviderGuess: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
contextOverflowPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
provider: z.ZodString;
patterns: z.ZodArray<z.ZodString>;
}, z.core.$strict>>>;
contextOverflowRefit: z.ZodOptional<z.ZodObject<{
marginTokens: z.ZodNumber;
}, z.core.$strict>>;
recover: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
onSignals: z.ZodArray<z.ZodString>;
action: z.ZodEnum<{
schemaInSystemPrompt: "schemaInSystemPrompt";
schemalessJson: "schemalessJson";
}>;
}, z.core.$strict>>>>;
fieldRejection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
fields: z.ZodArray<z.ZodString>;
keywords: z.ZodArray<z.ZodString>;
windowChars: z.ZodNumber;
}, z.core.$strict>>>;
bedrockInferenceProfiles: z.ZodOptional<z.ZodObject<{
geo: z.ZodArray<z.ZodObject<{
match: z.ZodString;
prefix: z.ZodString;
}, z.core.$strict>>;
fallback: z.ZodString;
}, z.core.$strict>>;
}, z.core.$strict>;