ModelRouterMode Class

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 ModelRouterMode BALANCED

Default routing strategy balancing cost and accuracy across eligible models.

static final ModelRouterMode COST

Prioritizes cost.

static final ModelRouterMode QUALITY

Prioritizes accuracy.

Constructor Summary

Constructor Description
ModelRouterMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ModelRouterMode value.

Method Summary

Modifier and Type Method and Description
static ModelRouterMode fromString(String name)

Creates or finds a ModelRouterMode from its string representation.

static Collection<ModelRouterMode> values()

Gets known ModelRouterMode values.

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

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding ModelRouterMode.

values

public static Collection<ModelRouterMode> values()

Gets known ModelRouterMode values.

Returns:

known ModelRouterMode values.

Applies to