Repository navigation
Migrate Engine and Harness onto shared gateway-types - #93
Merged
Merged
Conversation
Replace `runvil-model-client` and local error, model, and metrics definitions in `runvil-types` with `gateway-types` and `gateway-client` at commit `5315394ac4e44c00f727e0e69789c34c6dfc86b5`. Re-export `GatewayClient`, `GatewayEndpoint`, and `SecretString` in `crates/harness-gateway-client/src/lib.rs` and remove `convert.rs` and `broker.rs`. Update `ModelInfo` and `ModelBinding` call sites for optional `context` and `thinking` values. - `InferenceBroker` and `OfflineBroker` stay in `crates/harness-internal/runner/src/performers.rs` beside `Delta` and `PieceSink` from `gateway-types` so `IntoShared` in `harness-runner` keeps all nine blanket and `Arc` implementations, and `GatewayBroker` forwards `InferenceBroker` calls directly to `GatewayClient`. - `fill_model_set` and `failed_thinking` in `crates/runvil-internal/runtime/src/execute/context.rs` report `none` when a model with `None` for `context` or `thinking` misses a declared `min_context` or `thinking` requirement, and `prepare_chat` in `crates/runvil-internal/runtime/src/execute/scheduler/chat.rs` skips `precheck` when `binding.context()` is `None`. - `FACADES` in `crates/build-xtask/src/api/load.rs` adds `gateway-types` to `public` for `runvil-engine` and `runvil`, and `crates/runvil-engine/public-api.txt` and `crates/runvil/public-api.txt` record the updated surface.
Set `default-features = false` on `gateway-client` in `[workspace.dependencies]` in `Cargo.toml` and inherit `gateway-client.workspace = true` in `crates/harness-gateway-client/Cargo.toml` so Cargo 1.95 accepts the workspace manifest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace
runvil-model-clientand local error, model, and metrics definitions inrunvil-typeswithgateway-typesandgateway-clientat commit5315394ac4e44c00f727e0e69789c34c6dfc86b5. Re-exportGatewayClient,GatewayEndpoint, andSecretStringincrates/harness-gateway-client/src/lib.rsand removeconvert.rsandbroker.rs. UpdateModelInfoandModelBindingcall sites for optionalcontextandthinkingvalues.InferenceBrokerandOfflineBrokerstay incrates/harness-internal/runner/src/performers.rsbesideDeltaandPieceSinkfromgateway-typessoIntoSharedinharness-runnerkeeps all nine blanket andArcimplementations, andGatewayBrokerforwardsInferenceBrokercalls directly toGatewayClient.fill_model_setandfailed_thinkingincrates/runvil-internal/runtime/src/execute/context.rsreportnonewhen a model withNoneforcontextorthinkingmisses a declaredmin_contextorthinkingrequirement, andprepare_chatincrates/runvil-internal/runtime/src/execute/scheduler/chat.rsskipsprecheckwhenbinding.context()isNone.FACADESincrates/build-xtask/src/api/load.rsaddsgateway-typestopublicforrunvil-engineandrunvil, andcrates/runvil-engine/public-api.txtandcrates/runvil/public-api.txtrecord the updated surface.Summary by CodeRabbit