Package akka.javasdk.ledger
Record Class InteractionMetadata
- Record Components:
modelConfig- the structured model configuration used for the interactionmodelConfigMap- the raw configuration entries, including any keys not represented in the structuredModelConfigcallStartedAt- when the model call startedcallFinishedAt- when the model call finishedfinishReason- why the model call finished
public record InteractionMetadata(ModelConfig modelConfig, Map<String,String> modelConfigMap, Instant callStartedAt, Instant callFinishedAt, InteractionMetadata.FinishReason finishReason)
extends Record
Metadata about the model call(s) of an interaction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhy a model call finished. -
Constructor Summary
ConstructorsConstructorDescriptionInteractionMetadata(ModelConfig modelConfig, Map<String, String> modelConfigMap, Instant callStartedAt, Instant callFinishedAt, InteractionMetadata.FinishReason finishReason) Creates an instance of aInteractionMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallFinishedAtrecord component.Returns the value of thecallStartedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinishReasonrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themodelConfigrecord component.Returns the value of themodelConfigMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InteractionMetadata
public InteractionMetadata(ModelConfig modelConfig, Map<String, String> modelConfigMap, Instant callStartedAt, Instant callFinishedAt, InteractionMetadata.FinishReason finishReason) Creates an instance of aInteractionMetadatarecord class.- Parameters:
modelConfig- the value for themodelConfigrecord componentmodelConfigMap- the value for themodelConfigMaprecord componentcallStartedAt- the value for thecallStartedAtrecord componentcallFinishedAt- the value for thecallFinishedAtrecord componentfinishReason- the value for thefinishReasonrecord 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). -
modelConfig
Returns the value of themodelConfigrecord component.- Returns:
- the value of the
modelConfigrecord component
-
modelConfigMap
Returns the value of themodelConfigMaprecord component.- Returns:
- the value of the
modelConfigMaprecord component
-
callStartedAt
Returns the value of thecallStartedAtrecord component.- Returns:
- the value of the
callStartedAtrecord component
-
callFinishedAt
Returns the value of thecallFinishedAtrecord component.- Returns:
- the value of the
callFinishedAtrecord component
-
finishReason
Returns the value of thefinishReasonrecord component.- Returns:
- the value of the
finishReasonrecord component
-