Record Class SessionModelChangeEvent.SessionModelChangeEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionModelChangeEvent.SessionModelChangeEventData
- Enclosing class:
SessionModelChangeEvent
public static record SessionModelChangeEvent.SessionModelChangeEventData(String previousModel, String newModel, String previousReasoningEffort, String reasoningEffort, ReasoningSummary previousReasoningSummary, ReasoningSummary reasoningSummary, ContextTier contextTier, String cause)
extends Record
Data payload for
SessionModelChangeEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModelChangeEventData(String previousModel, String newModel, String previousReasoningEffort, String reasoningEffort, ReasoningSummary previousReasoningSummary, ReasoningSummary reasoningSummary, ContextTier contextTier, String cause) Creates an instance of aSessionModelChangeEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.Returns the value of thecontextTierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newModel()Returns the value of thenewModelrecord component.Returns the value of thepreviousModelrecord component.Returns the value of thepreviousReasoningEffortrecord component.Returns the value of thepreviousReasoningSummaryrecord component.Returns the value of thereasoningEffortrecord component.Returns the value of thereasoningSummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModelChangeEventData
public SessionModelChangeEventData(String previousModel, String newModel, String previousReasoningEffort, String reasoningEffort, ReasoningSummary previousReasoningSummary, ReasoningSummary reasoningSummary, ContextTier contextTier, String cause) Creates an instance of aSessionModelChangeEventDatarecord class.- Parameters:
previousModel- the value for thepreviousModelrecord componentnewModel- the value for thenewModelrecord componentpreviousReasoningEffort- the value for thepreviousReasoningEffortrecord componentreasoningEffort- the value for thereasoningEffortrecord componentpreviousReasoningSummary- the value for thepreviousReasoningSummaryrecord componentreasoningSummary- the value for thereasoningSummaryrecord componentcontextTier- the value for thecontextTierrecord componentcause- the value for thecauserecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
previousModel
Returns the value of thepreviousModelrecord component.- Returns:
- the value of the
previousModelrecord component
-
newModel
Returns the value of thenewModelrecord component.- Returns:
- the value of the
newModelrecord component
-
previousReasoningEffort
Returns the value of thepreviousReasoningEffortrecord component.- Returns:
- the value of the
previousReasoningEffortrecord component
-
reasoningEffort
Returns the value of thereasoningEffortrecord component.- Returns:
- the value of the
reasoningEffortrecord component
-
previousReasoningSummary
Returns the value of thepreviousReasoningSummaryrecord component.- Returns:
- the value of the
previousReasoningSummaryrecord component
-
reasoningSummary
Returns the value of thereasoningSummaryrecord component.- Returns:
- the value of the
reasoningSummaryrecord component
-
contextTier
Returns the value of thecontextTierrecord component.- Returns:
- the value of the
contextTierrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-