Package io.jmix.dynmodelai.model
Record Class AgentObservation.ModelResponseReceived
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.AgentObservation.ModelResponseReceived
- All Implemented Interfaces:
AgentHistoryPayload,AgentObservation
- Enclosing interface:
AgentObservation
public static record AgentObservation.ModelResponseReceived(int attempt, String response)
extends Record
implements AgentObservation
Structured response as JSON, or the rejected model text when conversion failed. No prompt or HTTP metadata.
-
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
ConstructorsConstructorDescriptionModelResponseReceived(int attempt, String response) Creates an instance of aModelResponseReceivedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelResponseReceived
Creates an instance of aModelResponseReceivedrecord class.- Parameters:
attempt- the value for theattemptrecord componentresponse- the value for theresponserecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-