Table of Contents

Interface IModelRouter

Namespace
JD.AI.Core.Routing
Assembly
JD.AI.Core.dll

Selects the best model and ordered fallback chain from available models.

public interface IModelRouter

Methods

Route(IReadOnlyList<ProviderModelInfo>, RoutingPolicy)

ModelRouteDecision Route(IReadOnlyList<ProviderModelInfo> candidates, RoutingPolicy policy)

Parameters

candidates IReadOnlyList<ProviderModelInfo>
policy RoutingPolicy

Returns

ModelRouteDecision