Class ModelPreferences
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ModelPreferences
Model-selection preferences for
CreateMessageRequest (MCP sampling).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHints(Collection<ModelHint> value) Appends to the hints.Appends to the hints.Relative priority (0.0-1.0) placed on minimizing cost.getHints()Ordered model-family/name hints, most-preferred first.Relative priority (0.0-1.0) placed on maximizing capability.Relative priority (0.0-1.0) placed on minimizing latency.setCostPriority(Double value) Sets the cost priority.Sets the hints.Sets the hints.setIntelligencePriority(Double value) Sets the intelligence priority.setSpeedPriority(Double value) Sets the speed priority.
-
Constructor Details
-
ModelPreferences
public ModelPreferences()
-
-
Method Details
-
getHints
Ordered model-family/name hints, most-preferred first.- Returns:
- The hints list, or
nullif not set.
-
setHints
Sets the hints.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
setHints
Sets the hints.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
addHints
Appends to the hints.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
addHints
Appends to the hints.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
getCostPriority
Relative priority (0.0-1.0) placed on minimizing cost.- Returns:
- The priority, or
nullif not set.
-
setCostPriority
Sets the cost priority.- Parameters:
value- The new value,0.0-1.0. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getSpeedPriority
Relative priority (0.0-1.0) placed on minimizing latency.- Returns:
- The priority, or
nullif not set.
-
setSpeedPriority
Sets the speed priority.- Parameters:
value- The new value,0.0-1.0. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getIntelligencePriority
Relative priority (0.0-1.0) placed on maximizing capability.- Returns:
- The priority, or
nullif not set.
-
setIntelligencePriority
Sets the intelligence priority.- Parameters:
value- The new value,0.0-1.0. Can benull to unset the property.- Returns:
- This object (for method chaining).
-