Package com.axelor.ai.chat
Record Class Recap
java.lang.Object
java.lang.Record
com.axelor.ai.chat.Recap
public record Recap(String summary, List<Recap.Ref> records, Recap.Provenance provenance)
extends Record
What a conversation did and settled: one written summary, plus the records it may link.
The summary is written from the recorded tool calls and may not exceed them, so every record it names is one the ledger recorded and every link it carries resolves.
Stored structured rather than pre-rendered: the transcript renders markdown, the activity stream renders HTML.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhat the recap was built from, rendered as the card's footer.static final recordA record the conversation wrote to, and how to reach it. -
Constructor Summary
ConstructorsConstructorDescriptionRecap(String summary, List<Recap.Ref> records, Recap.Provenance provenance) Creates an instance of aRecaprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns the value of theprovenancerecord component.records()Returns the value of therecordsrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Recap
Creates an instance of aRecaprecord class.- Parameters:
summary- the value for thesummaryrecord componentrecords- the value for therecordsrecord componentprovenance- the value for theprovenancerecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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). -
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-