Record Class SessionModeSetParams

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

@CopilotExperimental @Generated("copilot-sdk-codegen") public record SessionModeSetParams(String sessionId, SessionMode mode, SessionMode expectedMode, String inheritPlanBaseFromSessionId, Boolean planModelConfigured, String planModel, String planReasoningEffort, String planContextTier, String compactionDecision, Boolean restorePlanModel, Boolean persistPlanSelection, ModelPickerSettingsContext pickerSettingsContext, String planExitAction) extends Record
Agent interaction mode to apply to the session.
Since:
1.0.0
  • Constructor Details

    • SessionModeSetParams

      public SessionModeSetParams(String sessionId, SessionMode mode, SessionMode expectedMode, String inheritPlanBaseFromSessionId, Boolean planModelConfigured, String planModel, String planReasoningEffort, String planContextTier, String compactionDecision, Boolean restorePlanModel, Boolean persistPlanSelection, ModelPickerSettingsContext pickerSettingsContext, String planExitAction)
      Creates an instance of a SessionModeSetParams record class.
      Parameters:
      sessionId - the value for the sessionId record component
      mode - the value for the mode record component
      expectedMode - the value for the expectedMode record component
      inheritPlanBaseFromSessionId - the value for the inheritPlanBaseFromSessionId record component
      planModelConfigured - the value for the planModelConfigured record component
      planModel - the value for the planModel record component
      planReasoningEffort - the value for the planReasoningEffort record component
      planContextTier - the value for the planContextTier record component
      compactionDecision - the value for the compactionDecision record component
      restorePlanModel - the value for the restorePlanModel record component
      persistPlanSelection - the value for the persistPlanSelection record component
      pickerSettingsContext - the value for the pickerSettingsContext record component
      planExitAction - the value for the planExitAction 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
    • mode

      public SessionMode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • expectedMode

      public SessionMode expectedMode()
      Returns the value of the expectedMode record component.
      Returns:
      the value of the expectedMode record component
    • inheritPlanBaseFromSessionId

      public String inheritPlanBaseFromSessionId()
      Returns the value of the inheritPlanBaseFromSessionId record component.
      Returns:
      the value of the inheritPlanBaseFromSessionId record component
    • planModelConfigured

      public Boolean planModelConfigured()
      Returns the value of the planModelConfigured record component.
      Returns:
      the value of the planModelConfigured record component
    • planModel

      public String planModel()
      Returns the value of the planModel record component.
      Returns:
      the value of the planModel record component
    • planReasoningEffort

      public String planReasoningEffort()
      Returns the value of the planReasoningEffort record component.
      Returns:
      the value of the planReasoningEffort record component
    • planContextTier

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

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

      public Boolean restorePlanModel()
      Returns the value of the restorePlanModel record component.
      Returns:
      the value of the restorePlanModel record component
    • persistPlanSelection

      public Boolean persistPlanSelection()
      Returns the value of the persistPlanSelection record component.
      Returns:
      the value of the persistPlanSelection record component
    • pickerSettingsContext

      public ModelPickerSettingsContext pickerSettingsContext()
      Returns the value of the pickerSettingsContext record component.
      Returns:
      the value of the pickerSettingsContext record component
    • planExitAction

      public String planExitAction()
      Returns the value of the planExitAction record component.
      Returns:
      the value of the planExitAction record component