MCPcopy Create free account
hub / github.com/InferCore/InferCore / backendSelectable

Function backendSelectable

internal/router/rule_router.go:49–51  ·  view source on GitHub ↗
(state types.RuntimeState, backendName string)

Source from the content-addressed store, hash-verified

47}
48
49func backendSelectable(state types.RuntimeState, backendName string) bool {
50 return BackendHealthOK(state.BackendHealth, backendName)
51}
52
53func (r *RuleRouter) selectByRules(tenant config.TenantConfig, req types.AIRequest, state types.RuntimeState) (types.RouteDecision, error) {
54 _ = tenant

Callers 3

selectByRulesMethod · 0.85
firstHealthyBackendMethod · 0.85
optimizeByCostMethod · 0.85

Calls 1

BackendHealthOKFunction · 0.85

Tested by

no test coverage detected