Record Class CompactRequest
java.lang.Object
java.lang.Record
io.agentscope.spring.boot.admin.dto.CompactRequest
- Record Components:
keepLastMessages- overrideagentscope.admin.compact-keep-last-messagesfor this single call (null = use default)replaceSummary- when true, the new summary replaces the existing one; otherwise it is appended
Request body for
POST /v1/admin/sessions/{id}:compact. All fields are optional; nulls
fall back to the starter defaults.-
Constructor Summary
ConstructorsConstructorDescriptionCompactRequest(Integer keepLastMessages, Boolean replaceSummary) Creates an instance of aCompactRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompactRequestdefaults()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 thekeepLastMessagesrecord component.Returns the value of thereplaceSummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompactRequest
Creates an instance of aCompactRequestrecord class.- Parameters:
keepLastMessages- the value for thekeepLastMessagesrecord componentreplaceSummary- the value for thereplaceSummaryrecord component
-
-
Method Details
-
defaults
-
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. -
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. -
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). -
keepLastMessages
Returns the value of thekeepLastMessagesrecord component.- Returns:
- the value of the
keepLastMessagesrecord component
-
replaceSummary
Returns the value of thereplaceSummaryrecord component.- Returns:
- the value of the
replaceSummaryrecord component
-