Skip to main content

LlmRoutingPolicy

Description

Provider-agnostic model routing policy with fallback and provider allow-list controls.

Properties

NameTypeDescriptionNotes
strategyStrategyEnumRouting behavior for model requests.[optional]
primaryProviderPrimaryProviderEnumPrimary provider to use for requests.[optional]
fallbackProvidersList<FallbackProvidersEnum>Ordered fallback providers used when primary requests fail.[optional]
allowedProvidersList<AllowedProvidersEnum>Explicit provider allow-list enforced by policy controls.[optional]
maxFallbackAttemptsIntegerMaximum number of provider fallback attempts per request.[optional]
idUUIDUnique identifier for object in the system[optional] [readonly]
ownerIdUUIDUUID of owner of the object in the system[optional] [readonly]
createdDateOffsetDateTimeDate of object creation[optional] [readonly]
keyHashStringData, including hash of the key(s) used to encrypt this record.[optional] [readonly]
lastAccessedByIdUUIDLast user to access object[optional] [readonly]
lastAccessedDateOffsetDateTimeTimestamp of last access of object[optional] [readonly]
lastModifiedByIdUUIDUnique identifier for user who last modifed the object in the system[optional] [readonly]
lastModifiedDateOffsetDateTimeDate of last object modification[optional] [readonly]
trashedBooleanIndicates if the object is trashed (soft deleted)[optional]

Enum: StrategyEnum

NameValue
SINGLE_PROVIDER"single_provider"
FALLBACK_CHAIN"fallback_chain"

Enum: PrimaryProviderEnum

NameValue
VALKYRAI"valkyrai"
OPENAI"openai"
LLAMA"llama"
PHI"phi"
GEMMA"gemma"
MISTRAL"mistral"
CLAUDE"claude"
GEMINI"gemini"
OTHER"other"
CHATGPT_PASS_THROUGH"chatgpt_pass_through"

Enum: List<FallbackProvidersEnum>

NameValue
VALKYRAI"valkyrai"
OPENAI"openai"
LLAMA"llama"
PHI"phi"
GEMMA"gemma"
MISTRAL"mistral"
CLAUDE"claude"
GEMINI"gemini"
OTHER"other"
CHATGPT_PASS_THROUGH"chatgpt_pass_through"

Enum: List<AllowedProvidersEnum>

NameValue
VALKYRAI"valkyrai"
OPENAI"openai"
LLAMA"llama"
PHI"phi"
GEMMA"gemma"
MISTRAL"mistral"
CLAUDE"claude"
GEMINI"gemini"
OTHER"other"
CHATGPT_PASS_THROUGH"chatgpt_pass_through"

Implemented Interfaces

  • Serializable

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0.3-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2026-05-16T11:45:23.900207-07:00[America/Los_Angeles]