Class ApplicationOutput.Thought.ThoughtBuilder<C extends ApplicationOutput.Thought,B extends ApplicationOutput.Thought.ThoughtBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.app.ApplicationOutput.Thought.ThoughtBuilder<C,B>
- Enclosing class:
- ApplicationOutput.Thought
public abstract static class ApplicationOutput.Thought.ThoughtBuilder<C extends ApplicationOutput.Thought,B extends ApplicationOutput.Thought.ThoughtBuilder<C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode of action, means which plugin or action to be runactionInput(com.google.gson.JsonObject actionInput) api or plugin input parametersactionInputStream(String actionInputStream) input param with streamactionName(String actionName) action name, e.g. searchDocument, apiactionType(String actionType) action type response : final response api: to run api callsabstract Cbuild()observation(String observation) result of api call or doc retrievalmodel's resultsprotected abstract Bself()Model's inference thought for rag or plugin processtoString()
-
Constructor Details
-
ThoughtBuilder
public ThoughtBuilder()
-
-
Method Details
-
thought
Model's inference thought for rag or plugin process- Returns:
this.
-
actionType
action type response : final response api: to run api calls- Returns:
this.
-
response
model's results- Returns:
this.
-
actionName
action name, e.g. searchDocument, api- Returns:
this.
-
action
code of action, means which plugin or action to be run- Returns:
this.
-
actionInputStream
input param with stream- Returns:
this.
-
actionInput
api or plugin input parameters- Returns:
this.
-
observation
result of api call or doc retrieval- Returns:
this.
-
self
-
build
-
toString
-