Class ModelPreferences

java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ModelPreferences

@Marshalled public class ModelPreferences extends Object
Model-selection preferences for CreateMessageRequest (MCP sampling).
  • Constructor Details

  • Method Details

    • getHints

      public List<ModelHint> getHints()
      Ordered model-family/name hints, most-preferred first.
      Returns:
      The hints list, or null if not set.
    • setHints

      Sets the hints.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • setHints

      public ModelPreferences setHints(ModelHint... value)
      Sets the hints.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • addHints

      public ModelPreferences addHints(ModelHint... value)
      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 null if not set.
    • setCostPriority

      Sets the cost priority.
      Parameters:
      value - The new value, 0.0-1.0. Can be null 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 null if not set.
    • setSpeedPriority

      Sets the speed priority.
      Parameters:
      value - The new value, 0.0-1.0. Can be null 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 null if not set.
    • setIntelligencePriority

      Sets the intelligence priority.
      Parameters:
      value - The new value, 0.0-1.0. Can be null to unset the property.
      Returns:
      This object (for method chaining).