ProjectsAgentsModelFactory.FixedRatioVersionSelectionRule Method

Definition

The FixedRatioVersionSelectionRule.

public static Azure.AI.Projects.Agents.FixedRatioVersionSelectionRule FixedRatioVersionSelectionRule(string agentVersion = default, int trafficPercentage = 0);
static member FixedRatioVersionSelectionRule : string * int -> Azure.AI.Projects.Agents.FixedRatioVersionSelectionRule
Public Shared Function FixedRatioVersionSelectionRule (Optional agentVersion As String = Nothing, Optional trafficPercentage As Integer = 0) As FixedRatioVersionSelectionRule

Parameters

agentVersion
String

The agent version to route traffic to.

trafficPercentage
Int32

The percentage of traffic to route to the version. Must be between 0 and 100.

Returns

A new FixedRatioVersionSelectionRule instance for mocking.

Applies to