Class ApplicationOutput.ApplicationOutputBuilder<C extends ApplicationOutput,B extends ApplicationOutput.ApplicationOutputBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.app.ApplicationOutput.ApplicationOutputBuilder<C,B>
- Enclosing class:
- ApplicationOutput
public abstract static class ApplicationOutput.ApplicationOutputBuilder<C extends ApplicationOutput,B extends ApplicationOutput.ApplicationOutputBuilder<C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cbuild()docReferences(List<ApplicationOutput.DocReference> docReferences) Doc references for retrieval resultfinishReason(String finishReason) Finish reason of model generation stoprejectStatus(Boolean rejectStatus) Reject status indicates whether the response was rejectedprotected abstract Bself()Session id for multiple round callsCompletion call response textthoughts(List<ApplicationOutput.Thought> thoughts) Thoughts of model planning for apptoString()workflowMessage(WorkflowMessage workflowMessage) workflow output message
-
Constructor Details
-
ApplicationOutputBuilder
public ApplicationOutputBuilder()
-
-
Method Details
-
text
Completion call response text- Returns:
this.
-
finishReason
Finish reason of model generation stop- Returns:
this.
-
sessionId
Session id for multiple round calls- Returns:
this.
-
rejectStatus
Reject status indicates whether the response was rejected- Returns:
this.
-
thoughts
Thoughts of model planning for app- Returns:
this.
-
docReferences
Doc references for retrieval result- Returns:
this.
-
workflowMessage
workflow output message- Returns:
this.
-
self
-
build
-
toString
-