Class Configs.ModelConfig

java.lang.Object
com.alibaba.dashscope.applications.agentstudio.model.Configs.ModelConfig
Enclosing class:
Configs

public static class Configs.ModelConfig extends Object
The model object of an agent: the model id plus its inference parameters. Unset parameters keep their server default; on update this object replaces the whole config.
  • Constructor Details

    • ModelConfig

      public ModelConfig()
  • Method Details

    • of

      public static Configs.ModelConfig of(String id)
      The id-only config. A null id yields null rather than an id-less config, so an unset model stays unset in the request body.
    • builder

      public static Configs.ModelConfig.ModelConfigBuilder builder()
    • toBuilder

    • getId

      public String getId()
    • getName

      public String getName()
      Console-only: the public API neither accepts nor returns it.
    • getTemperature

      public Double getTemperature()
    • getMaxTokens

      public Integer getMaxTokens()
    • getEnableThinking

      public Boolean getEnableThinking()
    • getThinkingBudget

      public Integer getThinkingBudget()
    • setId

      public void setId(String id)
    • setName

      public void setName(String name)
      Console-only: the public API neither accepts nor returns it.
    • setTemperature

      public void setTemperature(Double temperature)
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
    • setEnableThinking

      public void setEnableThinking(Boolean enableThinking)
    • setThinkingBudget

      public void setThinkingBudget(Integer thinkingBudget)
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object