Class ApplicationParam

java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.app.ApplicationParam
Direct Known Subclasses:
RagApplicationParam

@Deprecated public class ApplicationParam extends HalfDuplexParamBase
Deprecated.
Title Application call input parameters.
Description Application call input parameters.
Created at 2024-02-23 16:15
Since:
jdk8
  • Constructor Details

  • Method Details

    • getModel

      public String getModel()
      Deprecated.
      Specified by:
      getModel in class HalfDuplexParamBase
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The service parameters.
      Specified by:
      getParameters in class HalfDuplexParamBase
      Returns:
      The parameters
    • getHeaders

      public Map<String,String> getHeaders()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The custom http header.
      Specified by:
      getHeaders in class HalfDuplexParamBase
      Returns:
      The headers.
    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • getInput

      public com.google.gson.JsonObject getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Specified by:
      getInput in class HalfDuplexParamBase
      Returns:
      The input data object.
    • getResources

      public Object getResources()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request resources
      Specified by:
      getResources in class HalfDuplexParamBase
      Returns:
      The resource object
    • getBinaryData

      public ByteBuffer getBinaryData()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the binary data, only websocket, if no binary data, return null.
      Specified by:
      getBinaryData in class HalfDuplexParamBase
      Returns:
      The binary data
    • validate

      public void validate() throws InputRequiredException
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Validate the input and parameters.
      Specified by:
      validate in class HalfDuplexParamBase
      Throws:
      InputRequiredException - Missing input fields.
    • builder

      public static ApplicationParam.ApplicationParamBuilder<?,?> builder()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class HalfDuplexParamBase
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class HalfDuplexParamBase
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class HalfDuplexParamBase
    • getAppId

      @NonNull public @NonNull String getAppId()
      Deprecated.
      Id of bailian application
    • getPrompt

      public String getPrompt()
      Deprecated.
      prompt
    • getHistory

      public List<History> getHistory()
      Deprecated.
      chat history
    • getMessages

      public List<Message> getMessages()
      Deprecated.
      chat message
    • getSessionId

      public String getSessionId()
      Deprecated.
      Session id for storing chat history note: this will be ignored if history passed
    • getHasThoughts

      public Boolean 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

      public Double 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

      public Integer getTopK()
      Deprecated.
      A sampling strategy, the k largest elements of the given mass are considered
    • getSeed

      public Integer 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

      public Float 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

      public Boolean 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

      public String getMemoryId()
      Deprecated.
      Long term memory id is used to store long term context summary between end users and assistant.
    • getImages

      public List<String> getImages()
      Deprecated.
      image list
    • getFiles

      public List<String> getFiles()
      Deprecated.
      file list
    • getRagOptions

      public RagOptions getRagOptions()
      Deprecated.
      rag options
    • getMcpServers

      public List<String> getMcpServers()
      Deprecated.
      mcp server list
    • getEnableWebSearch

      public Boolean getEnableWebSearch()
      Deprecated.
      enable web search
    • getEnableSystemTime

      public Boolean getEnableSystemTime()
      Deprecated.
      enable system time
    • getEnablePremium

      public Boolean getEnablePremium()
      Deprecated.
      enable prem model calling
    • getDialogRound

      public Integer getDialogRound()
      Deprecated.
      dialog round number
    • getModelId

      public String getModelId()
      Deprecated.
      model ID
    • getFlowStreamMode

      public FlowStreamMode getFlowStreamMode()
      Deprecated.
      stream mode for flow agent
    • getEnableThinking

      public Boolean getEnableThinking()
      Deprecated.
      enable thinking mode
    • getCipServiceCodes

      public CipServiceCodes getCipServiceCodes()
      Deprecated.
      CIP service codes for content security check
    • setResources

      public void setResources(Object resources)
      Deprecated.
    • setAppId

      public void setAppId(@NonNull @NonNull String appId)
      Deprecated.
      Id of bailian application
    • setPrompt

      public void setPrompt(String prompt)
      Deprecated.
      prompt
    • setHistory

      public void setHistory(List<History> history)
      Deprecated.
      chat history
    • setMessages

      public void setMessages(List<Message> messages)
      Deprecated.
      chat message
    • setSessionId

      public void setSessionId(String sessionId)
      Deprecated.
      Session id for storing chat history note: this will be ignored if history passed
    • setHasThoughts

      public void setHasThoughts(Boolean hasThoughts)
      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

      public void setTopP(Double topP)
      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

      public void setTopK(Integer topK)
      Deprecated.
      A sampling strategy, the k largest elements of the given mass are considered
    • setSeed

      public void setSeed(Integer seed)
      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

      public void setTemperature(Float temperature)
      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

      public void setIncrementalOutput(Boolean incrementalOutput)
      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

      public void setMemoryId(String memoryId)
      Deprecated.
      Long term memory id is used to store long term context summary between end users and assistant.
    • setImages

      public void setImages(List<String> images)
      Deprecated.
      image list
    • setFiles

      public void setFiles(List<String> files)
      Deprecated.
      file list
    • setRagOptions

      public void setRagOptions(RagOptions ragOptions)
      Deprecated.
      rag options
    • setMcpServers

      public void setMcpServers(List<String> mcpServers)
      Deprecated.
      mcp server list
    • setEnableWebSearch

      public void setEnableWebSearch(Boolean enableWebSearch)
      Deprecated.
      enable web search
    • setEnableSystemTime

      public void setEnableSystemTime(Boolean enableSystemTime)
      Deprecated.
      enable system time
    • setEnablePremium

      public void setEnablePremium(Boolean enablePremium)
      Deprecated.
      enable prem model calling
    • setDialogRound

      public void setDialogRound(Integer dialogRound)
      Deprecated.
      dialog round number
    • setModelId

      public void setModelId(String modelId)
      Deprecated.
      model ID
    • setFlowStreamMode

      public void setFlowStreamMode(FlowStreamMode flowStreamMode)
      Deprecated.
      stream mode for flow agent
    • setEnableThinking

      public void setEnableThinking(Boolean enableThinking)
      Deprecated.
      enable thinking mode
    • setCipServiceCodes

      public void setCipServiceCodes(CipServiceCodes cipServiceCodes)
      Deprecated.
      CIP service codes for content security check
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class HalfDuplexParamBase