MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / no_writable_protocol_failure

Function no_writable_protocol_failure

crates/openshell-router/src/backend.rs:448–456  ·  view source on GitHub ↗

The request-shape failure for a route that advertises no writable protocol. Shared by the empty-probe guard and the all-probes-failed fallback so the otherwise-unreachable terminal case is a value rather than a panic.

(route: &ResolvedRoute)

Source from the content-addressed store, hash-verified

446/// Shared by the empty-probe guard and the all-probes-failed fallback so the
447/// otherwise-unreachable terminal case is a value rather than a panic.
448fn no_writable_protocol_failure(route: &ResolvedRoute) -> ValidationFailure {
449 ValidationFailure {
450 kind: ValidationFailureKind::RequestShape,
451 details: format!(
452 "route '{}' does not expose a writable inference protocol for validation",
453 route.name
454 ),
455 }
456}
457
458pub async fn verify_backend_endpoint(
459 client: &reqwest::Client,

Callers 1

verify_backend_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected