382194b498
StageConfig.modelId; InferenceRouter gains a backward-compatible model-aware route() overload (default ignores modelId, so static routers and test fakes are unaffected). New ManagedInferenceRouter (infra commons) resolves a target model per stage (stage.modelId > capability match > default) and ensureLoaded()s it before routing, returning the live managed provider — its id changes with the resident model, so there is no stale health cache to invalidate on swap. ModelManager.ensureLoaded default delegates to the idempotent load(). Main wires the managed router on the [[models]] path; the static path keeps DefaultInferenceRouter. Plan: docs/plans/2026-05-31-model-lifecycle-management.md (slice 2 of 5).
29 lines
1.2 KiB
Groovy
29 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
id 'java-test-fixtures'
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core:events"))
|
|
testImplementation(project(":core:transitions"))
|
|
testImplementation(project(":core:sessions"))
|
|
testImplementation(project(":core:validation"))
|
|
testImplementation(project(":core:approvals"))
|
|
testImplementation(project(":core:artifacts"))
|
|
testImplementation(project(":core:kernel"))
|
|
testImplementation(project(":testing:fixtures"))
|
|
testImplementation(project(":core:inference"))
|
|
testImplementation(project(":core:context"))
|
|
testImplementation(project(":infrastructure:inference:commons"))
|
|
testFixturesImplementation(project(":core:events"))
|
|
testFixturesImplementation(project(":core:sessions"))
|
|
testFixturesImplementation(project(":core:artifacts-store"))
|
|
testFixturesImplementation(project(":testing:fixtures"))
|
|
testFixturesImplementation "org.jetbrains.kotlinx:kotlinx-datetime:$kotlinx_datetime_version"
|
|
testFixturesImplementation "org.junit.jupiter:junit-jupiter:$junit_version"
|
|
testFixturesImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"
|
|
}
|
|
|
|
tasks.named("koverVerify").configure { enabled = false }
|