Class ApplicationParam.ApplicationParamBuilder<C extends ApplicationParam,B extends ApplicationParam.ApplicationParamBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C,B>
com.alibaba.dashscope.legacy_2x.app.ApplicationParam.ApplicationParamBuilder<C,B>
- Direct Known Subclasses:
RagApplicationParam.RagApplicationParamBuilder
- Enclosing class:
- ApplicationParam
public abstract static class ApplicationParam.ApplicationParamBuilder<C extends ApplicationParam,B extends ApplicationParam.ApplicationParamBuilder<C,B>>
extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionId of bailian applicationbizParams(com.google.gson.JsonObject bizParams) The extra parameters for flow or plugin.abstract Cbuild()cipServiceCodes(CipServiceCodes cipServiceCodes) CIP service codes for content security checkdialogRound(Integer dialogRound) dialog round numberenablePremium(Boolean enablePremium) enable prem model callingenableSystemTime(Boolean enableSystemTime) enable system timeenableThinking(Boolean enableThinking) enable thinking modeenableWebSearch(Boolean enableWebSearch) enable web searchfile listflowStreamMode(FlowStreamMode flowStreamMode) stream mode for flow agenthasThoughts(Boolean hasThoughts) Flag to return rag or plugin process detailschat historyimage listincrementalOutput(Boolean incrementalOutput) Used to control the streaming output mode.mcpServers(List<String> mcpServers) mcp server listLong term memory id is used to store long term context summary between end users and assistant.chat messagemodel IDpromptragOptions(RagOptions ragOptions) rag optionsWhen generating, the seed of the random number is used to control the randomness of the model generation.protected abstract Bself()Session id for storing chat history note: this will be ignored if history passedtemperature(Float temperature) Used to control the degree of randomness and diversity.A sampling strategy, the k largest elements of the given mass are consideredA sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.toString()Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder
apiKey, clearHeaders, clearParameters, enableEncrypt, header, headers, parameter, parameters, securityCheck, workspace
-
Constructor Details
-
ApplicationParamBuilder
public ApplicationParamBuilder()
-
-
Method Details
-
resources
- Returns:
this.
-
appId
Id of bailian application- Returns:
this.
-
prompt
prompt- Returns:
this.
-
history
chat history- Returns:
this.
-
messages
chat message- Returns:
this.
-
sessionId
Session id for storing chat history note: this will be ignored if history passed- Returns:
this.
-
hasThoughts
Flag to return rag or plugin process details- Returns:
this.
-
bizParams
The extra parameters for flow or plugin.- Returns:
this.
-
topP
A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered- Returns:
this.
-
topK
A sampling strategy, the k largest elements of the given mass are considered- Returns:
this.
-
seed
When generating, the seed of the random number is used to control the randomness of the model generation. If you use the same seed, each run will generate the same results; you can use the same seed when you need to reproduce the model's generated results. The seed parameter supports unsigned 64-bit integer types. Default value 1234- Returns:
this.
-
temperature
Used to control the degree of randomness and diversity. Specifically, the temperature value controls the degree to which the probability distribution of each candidate word is smoothed when generating text. A higher temperature value will reduce the peak value of the probability distribution, allowing more low-probability words to be selected, and the generated results will be more diverse; while a lower temperature value will enhance the peak value of the probability distribution, making it easier for high-probability words to be selected, the generated results are more deterministic, range(0, 2).- Returns:
this.
-
incrementalOutput
Used to control the streaming output mode. If true, the subsequent output will include the previously input content by default. Otherwise, the subsequent output will not include the previously output content. Default: false.- Returns:
this.
-
memoryId
Long term memory id is used to store long term context summary between end users and assistant.- Returns:
this.
-
images
image list- Returns:
this.
-
files
file list- Returns:
this.
-
ragOptions
rag options- Returns:
this.
-
mcpServers
mcp server list- Returns:
this.
-
enableWebSearch
enable web search- Returns:
this.
-
enableSystemTime
enable system time- Returns:
this.
-
enablePremium
enable prem model calling- Returns:
this.
-
dialogRound
dialog round number- Returns:
this.
-
modelId
model ID- Returns:
this.
-
flowStreamMode
stream mode for flow agent- Returns:
this.
-
enableThinking
enable thinking mode- Returns:
this.
-
cipServiceCodes
CIP service codes for content security check- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends ApplicationParam,B extends ApplicationParam.ApplicationParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends ApplicationParam,B extends ApplicationParam.ApplicationParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends ApplicationParam,B extends ApplicationParam.ApplicationParamBuilder<C, B>>
-