Record Class EvidenceReference
java.lang.Object
java.lang.Record
com.shaft.pilot.ai.EvidenceReference
- Record Components:
id- caller-owned stable identifiercategory- evidence categorymediaType- evidence media typecontent- evidence content
public record EvidenceReference(String id, EvidenceCategory category, String mediaType, String content)
extends Record
Textual evidence supplied to a provider after approval and redaction.
-
Constructor Summary
ConstructorsConstructorDescriptionEvidenceReference(String id, EvidenceCategory category, String mediaType, String content) Creates an immutable evidence reference. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themediaTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvidenceReference
Creates an immutable evidence reference.
-
-
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). -
id
-
category
-
mediaType
-
content
-