Record Class SessionHistoryCompactParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionHistoryCompactParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionHistoryCompactParams(String sessionId, String customInstructions, SessionHistoryCompactParams.SessionHistoryCompactParamsTrigger trigger, Long tokenLimit)
extends Record
Request parameters for the
session.history.compact RPC method.- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat initiated this compaction request, recorded as the `trigger` on the persisted `session.compaction_start` / `session.compaction_complete` events. -
Constructor Summary
ConstructorsConstructorDescriptionSessionHistoryCompactParams(String sessionId, String customInstructions, SessionHistoryCompactParams.SessionHistoryCompactParamsTrigger trigger, Long tokenLimit) Creates an instance of aSessionHistoryCompactParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomInstructionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.Returns the value of thetokenLimitrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
-
Constructor Details
-
SessionHistoryCompactParams
public SessionHistoryCompactParams(String sessionId, String customInstructions, SessionHistoryCompactParams.SessionHistoryCompactParamsTrigger trigger, Long tokenLimit) Creates an instance of aSessionHistoryCompactParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentcustomInstructions- the value for thecustomInstructionsrecord componenttrigger- the value for thetriggerrecord componenttokenLimit- the value for thetokenLimitrecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
customInstructions
Returns the value of thecustomInstructionsrecord component.- Returns:
- the value of the
customInstructionsrecord component
-
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
tokenLimit
Returns the value of thetokenLimitrecord component.- Returns:
- the value of the
tokenLimitrecord component
-