ModelRouterMode Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. agents. models. ModelRouterMode
- com.
- com.
public final class ModelRouterMode
extends ExpandableStringEnum<ModelRouterMode>
The routing mode used by Model Router for the request.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Model |
BALANCED
Default routing strategy balancing cost and accuracy across eligible models. |
|
static final
Model |
COST
Prioritizes cost. |
|
static final
Model |
QUALITY
Prioritizes accuracy. |
Constructor Summary
| Constructor | Description |
|---|---|
| ModelRouterMode() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Model |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Model |
fromString(String name)
Creates or finds a Model |
|
static
Collection<Model |
values()
Gets known Model |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
BALANCED
public static final ModelRouterMode BALANCED
Default routing strategy balancing cost and accuracy across eligible models.
COST
public static final ModelRouterMode COST
Prioritizes cost.
QUALITY
public static final ModelRouterMode QUALITY
Prioritizes accuracy.
Constructor Details
ModelRouterMode
@Deprecated
public ModelRouterMode()
Deprecated
Creates a new instance of ModelRouterMode value.
Method Details
fromString
public static ModelRouterMode fromString(String name)
Creates or finds a ModelRouterMode from its string representation.
Parameters:
Returns:
values
public static Collection<ModelRouterMode> values()
Gets known ModelRouterMode values.
Returns: