Class Configs.ModelConfig
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.model.Configs.ModelConfig
- Enclosing class:
- Configs
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.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetId()getName()Console-only: the public API neither accepts nor returns it.inthashCode()static Configs.ModelConfigThe id-only config.voidsetEnableThinking(Boolean enableThinking) voidvoidsetMaxTokens(Integer maxTokens) voidConsole-only: the public API neither accepts nor returns it.voidsetTemperature(Double temperature) voidsetThinkingBudget(Integer thinkingBudget) toString()
-
Constructor Details
-
ModelConfig
public ModelConfig()
-
-
Method Details
-
of
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
-
toBuilder
-
getId
-
getName
Console-only: the public API neither accepts nor returns it. -
getTemperature
-
getMaxTokens
-
getEnableThinking
-
getThinkingBudget
-
setId
-
setName
Console-only: the public API neither accepts nor returns it. -
setTemperature
-
setMaxTokens
-
setEnableThinking
-
setThinkingBudget
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-