Package io.jmix.dynmodelai.model
Record Class AgentObservation.ModelSelected
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.AgentObservation.ModelSelected
- All Implemented Interfaces:
AgentHistoryPayload,AgentObservation
- Enclosing interface:
AgentObservation
public static record AgentObservation.ModelSelected(String modelName, @Nullable String restoredFrom)
extends Record
implements AgentObservation
Selected Embabel model service, recorded before a call; not a claim that the provider succeeded.
restoredFrom identifies external evidence when old history was enriched, otherwise null.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.dynmodelai.model.AgentObservation
AgentObservation.ContextCompacted, AgentObservation.ContextCompactionFailed, AgentObservation.GraphStateChanged, AgentObservation.ModelResponseReceived, AgentObservation.ModelSelected, AgentObservation.PlanValidationCompleted, AgentObservation.ReferenceToolCompleted, AgentObservation.ReferenceToolStarted -
Constructor Summary
ConstructorsConstructorDescriptionModelSelected(String modelName, @Nullable String restoredFrom) Creates an instance of aModelSelectedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodelNamerecord component.@Nullable StringReturns the value of therestoredFromrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelSelected
Creates an instance of aModelSelectedrecord class.- Parameters:
modelName- the value for themodelNamerecord componentrestoredFrom- the value for therestoredFromrecord 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). -
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
restoredFrom
Returns the value of therestoredFromrecord component.- Returns:
- the value of the
restoredFromrecord component
-