Class AutoTier

java.lang.Object
com.github.copilot.rpc.AutoTier

public final class AutoTier extends Object
Routing tier for the auto model with Auto mode V2.
See Also:
  • Field Details

    • EFFICIENCY

      public static final AutoTier EFFICIENCY
      Prioritize efficiency.
    • BALANCE

      public static final AutoTier BALANCE
      Balance efficiency and intelligence.
    • INTELLIGENCE

      public static final AutoTier INTELLIGENCE
      Prioritize intelligence.
    • FAST

      public static final AutoTier FAST
      Integrator-only preset that optimizes for latency. Not a first-party GitHub Copilot product preference.
  • Method Details

    • getValue

      public String getValue()
      Returns the JSON value for this routing tier.
      Returns:
      the string value used in JSON serialization
    • fromValue

      public static AutoTier fromValue(String value)
      Deserializes a JSON string into its routing tier.
      Parameters:
      value - the JSON string value
      Returns:
      the matching tier, or null if value is null
      Throws:
      IllegalArgumentException - if the value is not a routing identifier
    • values

      public static AutoTier[] values()
      Returns the known convenience values. @return known routing tiers
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object