Package com.tnsai.roles.metadata
Record Class RoleSpecExtractor.CachedRoleMetadata
java.lang.Object
java.lang.Record
com.tnsai.roles.metadata.RoleSpecExtractor.CachedRoleMetadata
- Enclosing class:
RoleSpecExtractor
public static record RoleSpecExtractor.CachedRoleMetadata(Optional<RoleIdentity> identity, List<RoleSpecExtractor.ResponsibilityInfo> actionResponsibilities, List<RoleSpecExtractor.StateInfo> states, List<String> intentions, Optional<RoleSpecExtractor.LLMExportSpec> llmSpec)
extends Record
Cached bundle of all extracted metadata for a role class.
-
Constructor Summary
ConstructorsConstructorDescriptionCachedRoleMetadata(Optional<RoleIdentity> identity, List<RoleSpecExtractor.ResponsibilityInfo> actionResponsibilities, List<RoleSpecExtractor.StateInfo> states, List<String> intentions, Optional<RoleSpecExtractor.LLMExportSpec> llmSpec) Creates an instance of aCachedRoleMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionResponsibilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of theintentionsrecord component.llmSpec()Returns the value of thellmSpecrecord component.states()Returns the value of thestatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedRoleMetadata
public CachedRoleMetadata(Optional<RoleIdentity> identity, List<RoleSpecExtractor.ResponsibilityInfo> actionResponsibilities, List<RoleSpecExtractor.StateInfo> states, List<String> intentions, Optional<RoleSpecExtractor.LLMExportSpec> llmSpec) Creates an instance of aCachedRoleMetadatarecord class.- Parameters:
identity- the value for theidentityrecord componentactionResponsibilities- the value for theactionResponsibilitiesrecord componentstates- the value for thestatesrecord componentintentions- the value for theintentionsrecord componentllmSpec- the value for thellmSpecrecord component
-
-
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). -
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
actionResponsibilities
Returns the value of theactionResponsibilitiesrecord component.- Returns:
- the value of the
actionResponsibilitiesrecord component
-
states
Returns the value of thestatesrecord component.- Returns:
- the value of the
statesrecord component
-
intentions
Returns the value of theintentionsrecord component.- Returns:
- the value of the
intentionsrecord component
-
llmSpec
Returns the value of thellmSpecrecord component.- Returns:
- the value of the
llmSpecrecord component
-