Package com.axelor.ai.chat
Record Class RecapService.Write
java.lang.Object
java.lang.Record
com.axelor.ai.chat.RecapService.Write
- Record Components:
action- the tool's own action label, e.g. "Update record"model- fully-qualified model name, or null for a tool that named no recordlabel- how to name the record to a reader, e.g. "Order SO00002"id- record id, or nullfields- the field values the call reported, already flattened to "name = value"
- Enclosing class:
RecapService
public static record RecapService.Write(String action, String model, String label, Long id, List<String> fields)
extends Record
One recorded write, as the ledger reported it. Deliberately not part of
Recap: this is
the material a summary is written from, not something the card renders.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Write
Creates an instance of aWriterecord class.
-
-
Method Details
-
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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-