Record Class LlmTurnResult
java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.engine.LlmTurnResult
-
Constructor Summary
ConstructorsConstructorDescriptionLlmTurnResult(String assistantText, List<LlmToolCall> toolCalls) Creates an instance of aLlmTurnResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistantTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetoolCallsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LlmTurnResult
Creates an instance of aLlmTurnResultrecord class.- Parameters:
assistantText- the value for theassistantTextrecord componenttoolCalls- the value for thetoolCallsrecord component
-
-
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). -
assistantText
Returns the value of theassistantTextrecord component.- Returns:
- the value of the
assistantTextrecord component
-
toolCalls
Returns the value of thetoolCallsrecord component.- Returns:
- the value of the
toolCallsrecord component
-