Class ApplicationParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.app.ApplicationParam
- Direct Known Subclasses:
RagApplicationParam
Deprecated.
Title Application call input parameters.
Description Application call input parameters.
Created at 2024-02-23 16:15
Description Application call input parameters.
Created at 2024-02-23 16:15
- Since:
- jdk8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classApplicationParam.ApplicationParamBuilder<C extends ApplicationParam,B extends ApplicationParam.ApplicationParamBuilder<C, B>> Deprecated.Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends HalfDuplexParamBase,B extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C, B>> -
Field Summary
Fields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationParam.ApplicationParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.@NonNull StringgetAppId()Deprecated.Id of bailian applicationDeprecated.Get the binary data, only websocket, if no binary data, return null.com.google.gson.JsonObjectDeprecated.The extra parameters for flow or plugin.Deprecated.CIP service codes for content security checkDeprecated.dialog round numberDeprecated.enable prem model callingDeprecated.enable system timeDeprecated.enable thinking modeDeprecated.enable web searchgetFiles()Deprecated.file listDeprecated.stream mode for flow agentDeprecated.Flag to return rag or plugin process detailsDeprecated.The custom http header.Deprecated.chat historycom.google.gson.JsonObjectDeprecated.Get the batch request data.Deprecated.image listDeprecated.Used to control the streaming output mode.com.google.gson.JsonObjectgetInput()Deprecated.Get the request input data.Deprecated.mcp server listDeprecated.Long term memory id is used to store long term context summary between end users and assistant.Deprecated.chat messagegetModel()Deprecated.Deprecated.model IDDeprecated.The service parameters.Deprecated.promptDeprecated.rag optionsDeprecated.Get the request resourcesgetSeed()Deprecated.When generating, the seed of the random number is used to control the randomness of the model generation.Deprecated.Session id for storing chat history note: this will be ignored if history passedDeprecated.Used to control the degree of randomness and diversity.getTopK()Deprecated.A sampling strategy, the k largest elements of the given mass are consideredgetTopP()Deprecated.A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.inthashCode()Deprecated.voidDeprecated.Id of bailian applicationvoidsetBizParams(com.google.gson.JsonObject bizParams) Deprecated.The extra parameters for flow or plugin.voidsetCipServiceCodes(CipServiceCodes cipServiceCodes) Deprecated.CIP service codes for content security checkvoidsetDialogRound(Integer dialogRound) Deprecated.dialog round numbervoidsetEnablePremium(Boolean enablePremium) Deprecated.enable prem model callingvoidsetEnableSystemTime(Boolean enableSystemTime) Deprecated.enable system timevoidsetEnableThinking(Boolean enableThinking) Deprecated.enable thinking modevoidsetEnableWebSearch(Boolean enableWebSearch) Deprecated.enable web searchvoidDeprecated.file listvoidsetFlowStreamMode(FlowStreamMode flowStreamMode) Deprecated.stream mode for flow agentvoidsetHasThoughts(Boolean hasThoughts) Deprecated.Flag to return rag or plugin process detailsvoidsetHistory(List<History> history) Deprecated.chat historyvoidDeprecated.image listvoidsetIncrementalOutput(Boolean incrementalOutput) Deprecated.Used to control the streaming output mode.voidsetMcpServers(List<String> mcpServers) Deprecated.mcp server listvoidsetMemoryId(String memoryId) Deprecated.Long term memory id is used to store long term context summary between end users and assistant.voidsetMessages(List<Message> messages) Deprecated.chat messagevoidsetModelId(String modelId) Deprecated.model IDvoidDeprecated.promptvoidsetRagOptions(RagOptions ragOptions) Deprecated.rag optionsvoidsetResources(Object resources) Deprecated.voidDeprecated.When generating, the seed of the random number is used to control the randomness of the model generation.voidsetSessionId(String sessionId) Deprecated.Session id for storing chat history note: this will be ignored if history passedvoidsetTemperature(Float temperature) Deprecated.Used to control the degree of randomness and diversity.voidDeprecated.A sampling strategy, the k largest elements of the given mass are consideredvoidDeprecated.A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.toString()Deprecated.voidvalidate()Deprecated.Validate the input and parameters.Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
getApiKey, getEnableEncrypt, getWorkspace, isSecurityCheck, setApiKey, setEnableEncrypt, setHeaders, setParameters, setSecurityCheck, setWorkspace, shouldSerializeExplicitNulls
-
Constructor Details
-
ApplicationParam
Deprecated.
-
-
Method Details
-
getModel
Deprecated.- Specified by:
getModelin classHalfDuplexParamBase
-
getParameters
Deprecated.Description copied from class:HalfDuplexParamBaseThe service parameters.- Specified by:
getParametersin classHalfDuplexParamBase- Returns:
- The parameters
-
getHeaders
Deprecated.Description copied from class:HalfDuplexParamBaseThe custom http header.- Specified by:
getHeadersin classHalfDuplexParamBase- Returns:
- The headers.
-
getHttpBody
public com.google.gson.JsonObject getHttpBody()Deprecated.Description copied from class:HalfDuplexParamBaseGet the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}- Specified by:
getHttpBodyin classHalfDuplexParamBase- Returns:
- The http request body
-
getInput
public com.google.gson.JsonObject getInput()Deprecated.Description copied from class:HalfDuplexParamBaseGet the request input data.- Specified by:
getInputin classHalfDuplexParamBase- Returns:
- The input data object.
-
getResources
Deprecated.Description copied from class:HalfDuplexParamBaseGet the request resources- Specified by:
getResourcesin classHalfDuplexParamBase- Returns:
- The resource object
-
getBinaryData
Deprecated.Description copied from class:HalfDuplexParamBaseGet the binary data, only websocket, if no binary data, return null.- Specified by:
getBinaryDatain classHalfDuplexParamBase- Returns:
- The binary data
-
validate
Deprecated.Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Specified by:
validatein classHalfDuplexParamBase- Throws:
InputRequiredException- Missing input fields.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classHalfDuplexParamBase
-
canEqual
Deprecated.- Overrides:
canEqualin classHalfDuplexParamBase
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classHalfDuplexParamBase
-
getAppId
Deprecated.Id of bailian application -
getPrompt
Deprecated.prompt -
getHistory
Deprecated.chat history -
getMessages
Deprecated.chat message -
getSessionId
Deprecated.Session id for storing chat history note: this will be ignored if history passed -
getHasThoughts
Deprecated.Flag to return rag or plugin process details -
getBizParams
public com.google.gson.JsonObject getBizParams()Deprecated.The extra parameters for flow or plugin. -
getTopP
Deprecated.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 -
getTopK
Deprecated.A sampling strategy, the k largest elements of the given mass are considered -
getSeed
Deprecated.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 -
getTemperature
Deprecated.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). -
getIncrementalOutput
Deprecated.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. -
getMemoryId
Deprecated.Long term memory id is used to store long term context summary between end users and assistant. -
getImages
Deprecated.image list -
getFiles
Deprecated.file list -
getRagOptions
Deprecated.rag options -
getMcpServers
Deprecated.mcp server list -
getEnableWebSearch
Deprecated.enable web search -
getEnableSystemTime
Deprecated.enable system time -
getEnablePremium
Deprecated.enable prem model calling -
getDialogRound
Deprecated.dialog round number -
getModelId
Deprecated.model ID -
getFlowStreamMode
Deprecated.stream mode for flow agent -
getEnableThinking
Deprecated.enable thinking mode -
getCipServiceCodes
Deprecated.CIP service codes for content security check -
setResources
Deprecated. -
setAppId
Deprecated.Id of bailian application -
setPrompt
Deprecated.prompt -
setHistory
Deprecated.chat history -
setMessages
Deprecated.chat message -
setSessionId
Deprecated.Session id for storing chat history note: this will be ignored if history passed -
setHasThoughts
Deprecated.Flag to return rag or plugin process details -
setBizParams
public void setBizParams(com.google.gson.JsonObject bizParams) Deprecated.The extra parameters for flow or plugin. -
setTopP
Deprecated.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 -
setTopK
Deprecated.A sampling strategy, the k largest elements of the given mass are considered -
setSeed
Deprecated.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 -
setTemperature
Deprecated.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). -
setIncrementalOutput
Deprecated.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. -
setMemoryId
Deprecated.Long term memory id is used to store long term context summary between end users and assistant. -
setImages
Deprecated.image list -
setFiles
Deprecated.file list -
setRagOptions
Deprecated.rag options -
setMcpServers
Deprecated.mcp server list -
setEnableWebSearch
Deprecated.enable web search -
setEnableSystemTime
Deprecated.enable system time -
setEnablePremium
Deprecated.enable prem model calling -
setDialogRound
Deprecated.dialog round number -
setModelId
Deprecated.model ID -
setFlowStreamMode
Deprecated.stream mode for flow agent -
setEnableThinking
Deprecated.enable thinking mode -
setCipServiceCodes
Deprecated.CIP service codes for content security check -
toString
Deprecated.- Overrides:
toStringin classHalfDuplexParamBase
-