Package ai.octoryn.sdk
Record Class TextResult
java.lang.Object
java.lang.Record
ai.octoryn.sdk.TextResult
-
Constructor Summary
ConstructorsConstructorDescriptionTextResult(String text, List<ToolCall> toolCalls, String finishReason, Usage usage, GovernanceMetadata octoryn, com.fasterxml.jackson.databind.JsonNode response) Creates an instance of aTextResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.octoryn()Returns the value of theoctorynrecord component.com.fasterxml.jackson.databind.JsonNoderesponse()Returns the value of theresponserecord component.text()Returns the value of thetextrecord component.Returns the value of thetoolCallsrecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
TextResult
public TextResult(String text, List<ToolCall> toolCalls, String finishReason, Usage usage, GovernanceMetadata octoryn, com.fasterxml.jackson.databind.JsonNode response) Creates an instance of aTextResultrecord class.- Parameters:
text- the value for thetextrecord componenttoolCalls- the value for thetoolCallsrecord componentfinishReason- the value for thefinishReasonrecord componentusage- the value for theusagerecord componentoctoryn- the value for theoctorynrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
toolCalls
Returns the value of thetoolCallsrecord component.- Returns:
- the value of the
toolCallsrecord component
-
finishReason
Returns the value of thefinishReasonrecord component.- Returns:
- the value of the
finishReasonrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
octoryn
Returns the value of theoctorynrecord component.- Returns:
- the value of the
octorynrecord component
-
response
public com.fasterxml.jackson.databind.JsonNode response()Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-