Record Class DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput
- Enclosing class:
- DashScopeAgentApi.DashScopeAgentResponse
public static record DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput(String text, String finishReason, String sessionId, List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputThoughts> thoughts, List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputDocReference> docReferences)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeAgentResponseOutput(String text, String finishReason, String sessionId, List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputThoughts> thoughts, List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputDocReference> docReferences) Creates an instance of aDashScopeAgentResponseOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputDocReference>Returns the value of thedocReferencesrecord 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 thesessionIdrecord component.text()Returns the value of thetextrecord component.List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputThoughts>thoughts()Returns the value of thethoughtsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DashScopeAgentResponseOutput
public DashScopeAgentResponseOutput(String text, String finishReason, String sessionId, List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputThoughts> thoughts, List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputDocReference> docReferences) Creates an instance of aDashScopeAgentResponseOutputrecord class.- Parameters:
text- the value for thetextrecord componentfinishReason- the value for thefinishReasonrecord componentsessionId- the value for thesessionIdrecord componentthoughts- the value for thethoughtsrecord componentdocReferences- the value for thedocReferencesrecord 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
-
finishReason
Returns the value of thefinishReasonrecord component.- Returns:
- the value of the
finishReasonrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
thoughts
public List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputThoughts> thoughts()Returns the value of thethoughtsrecord component.- Returns:
- the value of the
thoughtsrecord component
-
docReferences
public List<DashScopeAgentApi.DashScopeAgentResponse.DashScopeAgentResponseOutput.DashScopeAgentResponseOutputDocReference> docReferences()Returns the value of thedocReferencesrecord component.- Returns:
- the value of the
docReferencesrecord component
-