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 Classes
    Modifier and Type
    Class
    Description
    static final record 
    What the recap was built from, rendered as the card's footer.
    static final record 
    A record the conversation wrote to, and how to reach it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Recap(String summary, List<Recap.Ref> records, Recap.Provenance provenance)
    Creates an instance of a Recap record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
     
    Returns the value of the provenance record component.
    Returns the value of the records record component.
    Returns the value of the summary record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Recap

      public Recap(String summary, List<Recap.Ref> records, Recap.Provenance provenance)
      Creates an instance of a Recap record class.
      Parameters:
      summary - the value for the summary record component
      records - the value for the records record component
      provenance - the value for the provenance record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • 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.
    • summary

      public String summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component
    • records

      public List<Recap.Ref> records()
      Returns the value of the records record component.
      Returns:
      the value of the records record component
    • provenance

      public Recap.Provenance provenance()
      Returns the value of the provenance record component.
      Returns:
      the value of the provenance record component