Record Class SessionModelSwitchToParams

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionModelSwitchToParams

@CopilotExperimental @Generated("copilot-sdk-codegen") public record SessionModelSwitchToParams(String sessionId, String modelId, AutoTier autoTier, String reasoningEffort, ReasoningSummary reasoningSummary, Verbosity verbosity, ModelCapabilitiesOverride modelCapabilities, ContextTier contextTier, ModelChangeSource source, Boolean deferIfModelChangeQueued, String compactionDecision, Boolean runCompactionPreflight, String repoScope, String modelChangeScope, Boolean requireAvailable, ModelPickerPersistenceRequest pickerPersistence) extends Record
Target model identifier and optional reasoning effort, summary, capability overrides, and context tier.
Since:
1.0.0
  • Constructor Details

    • SessionModelSwitchToParams

      public SessionModelSwitchToParams(String sessionId, String modelId, AutoTier autoTier, String reasoningEffort, ReasoningSummary reasoningSummary, Verbosity verbosity, ModelCapabilitiesOverride modelCapabilities, ContextTier contextTier, ModelChangeSource source, Boolean deferIfModelChangeQueued, String compactionDecision, Boolean runCompactionPreflight, String repoScope, String modelChangeScope, Boolean requireAvailable, ModelPickerPersistenceRequest pickerPersistence)
      Creates an instance of a SessionModelSwitchToParams record class.
      Parameters:
      sessionId - the value for the sessionId record component
      modelId - the value for the modelId record component
      autoTier - the value for the autoTier record component
      reasoningEffort - the value for the reasoningEffort record component
      reasoningSummary - the value for the reasoningSummary record component
      verbosity - the value for the verbosity record component
      modelCapabilities - the value for the modelCapabilities record component
      contextTier - the value for the contextTier record component
      source - the value for the source record component
      deferIfModelChangeQueued - the value for the deferIfModelChangeQueued record component
      compactionDecision - the value for the compactionDecision record component
      runCompactionPreflight - the value for the runCompactionPreflight record component
      repoScope - the value for the repoScope record component
      modelChangeScope - the value for the modelChangeScope record component
      requireAvailable - the value for the requireAvailable record component
      pickerPersistence - the value for the pickerPersistence record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sessionId

      public String sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • autoTier

      public AutoTier autoTier()
      Returns the value of the autoTier record component.
      Returns:
      the value of the autoTier record component
    • reasoningEffort

      public String reasoningEffort()
      Returns the value of the reasoningEffort record component.
      Returns:
      the value of the reasoningEffort record component
    • reasoningSummary

      public ReasoningSummary reasoningSummary()
      Returns the value of the reasoningSummary record component.
      Returns:
      the value of the reasoningSummary record component
    • verbosity

      public Verbosity verbosity()
      Returns the value of the verbosity record component.
      Returns:
      the value of the verbosity record component
    • modelCapabilities

      public ModelCapabilitiesOverride modelCapabilities()
      Returns the value of the modelCapabilities record component.
      Returns:
      the value of the modelCapabilities record component
    • contextTier

      public ContextTier contextTier()
      Returns the value of the contextTier record component.
      Returns:
      the value of the contextTier record component
    • source

      public ModelChangeSource source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • deferIfModelChangeQueued

      public Boolean deferIfModelChangeQueued()
      Returns the value of the deferIfModelChangeQueued record component.
      Returns:
      the value of the deferIfModelChangeQueued record component
    • compactionDecision

      public String compactionDecision()
      Returns the value of the compactionDecision record component.
      Returns:
      the value of the compactionDecision record component
    • runCompactionPreflight

      public Boolean runCompactionPreflight()
      Returns the value of the runCompactionPreflight record component.
      Returns:
      the value of the runCompactionPreflight record component
    • repoScope

      public String repoScope()
      Returns the value of the repoScope record component.
      Returns:
      the value of the repoScope record component
    • modelChangeScope

      public String modelChangeScope()
      Returns the value of the modelChangeScope record component.
      Returns:
      the value of the modelChangeScope record component
    • requireAvailable

      public Boolean requireAvailable()
      Returns the value of the requireAvailable record component.
      Returns:
      the value of the requireAvailable record component
    • pickerPersistence

      public ModelPickerPersistenceRequest pickerPersistence()
      Returns the value of the pickerPersistence record component.
      Returns:
      the value of the pickerPersistence record component