DashScopeParameters
@JsonInclude(JsonInclude.Include.NON_NULL) public class DashScopeParameters
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:28–387DashScope 参数,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 getResultFormat、setResultFormat、getIncrementalOutput、setIncrementalOutput、getTemperature、setTemperature。
DashScope API parameters DTO.
This class contains generation parameters for DashScope API requests.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.extensions.model.dashscope.dto that talks to model services and returns generated or embedded output. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public DashScopeParameters() | 初始化 `DashScopeParameters` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
DashScopeParameters
public DashScopeParameters()
初始化 DashScopeParameters 实例。
Creates a new instance.
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:114方法详情Method Detail
getResultFormat
public String getResultFormat()
获取结果格式。
Returns the result format.
Stringio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:116–118setResultFormat
public void setResultFormat(String resultFormat)
设置结果格式。
Sets the result format.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
resultFormat | String | 结果格式(类型 `String`)。The result format. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:120–122getIncrementalOutput
public Boolean getIncrementalOutput()
获取 getIncrementalOutput。
Returns the incremental output.
Booleanio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:124–126setIncrementalOutput
public void setIncrementalOutput(Boolean incrementalOutput)
设置 setIncrementalOutput。
Sets the incremental output.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
incrementalOutput | Boolean | incremental 输出(类型 `Boolean`)。The incremental output. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:128–130getTemperature
public Double getTemperature()
获取 getTemperature。
Returns the temperature.
Doubleio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:132–134setTemperature
public void setTemperature(Double temperature)
设置 setTemperature。
Sets the temperature.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
temperature | Double | temperature(类型 `Double`)。The temperature. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:136–138getTopP
public Double getTopP()
获取 getTopP。
Returns the top p.
Doubleio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:140–142setTopP
public void setTopP(Double topP)
设置 setTopP。
Sets the top p.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
topP | Double | top P(类型 `Double`)。The top p. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:144–146getTopK
public Integer getTopK()
获取 getTopK。
Returns the top k.
Integerio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:148–150setTopK
public void setTopK(Integer topK)
设置 setTopK。
Sets the top k.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
topK | Integer | top K(类型 `Integer`)。The top k. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:152–154getMaxTokens
public Integer getMaxTokens()
获取最大令牌数。
Returns the max tokens.
Integerio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:156–158setMaxTokens
public void setMaxTokens(Integer maxTokens)
设置最大令牌数。
Sets the max tokens.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxTokens | Integer | 最大令牌数(类型 `Integer`)。The max tokens. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:160–162getStop
public List<String> getStop()
获取停止。
Returns the stop.
List<String>io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:164–166setStop
public void setStop(List<String> stop)
设置停止。
Sets the stop.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
stop | List<String> | 停止(类型 `List`)。The stop. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:168–170getEnableThinking
public Boolean getEnableThinking()
获取 getEnableThinking。
Returns the enable thinking.
Booleanio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:172–174setEnableThinking
public void setEnableThinking(Boolean enableThinking)
设置 setEnableThinking。
Sets the enable thinking.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableThinking | Boolean | 启用 Thinking(类型 `Boolean`)。The enable thinking. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:176–178getThinkingBudget
public Integer getThinkingBudget()
获取 getThinkingBudget。
Returns the thinking budget.
Integerio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:180–182setThinkingBudget
public void setThinkingBudget(Integer thinkingBudget)
设置 setThinkingBudget。
Sets the thinking budget.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
thinkingBudget | Integer | thinking 预算(类型 `Integer`)。The thinking budget. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:184–186getEnableSearch
public Boolean getEnableSearch()
获取启用搜索。
Returns the enable search.
Booleanio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:188–190setEnableSearch
public void setEnableSearch(Boolean enableSearch)
设置启用搜索。
Sets the enable search.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableSearch | Boolean | 启用搜索(类型 `Boolean`)。The enable search. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:192–194getSearchOptions
public DashScopeSearchOptions getSearchOptions()
获取搜索选项。
Returns the search options.
DashScopeSearchOptionsio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:196–198setSearchOptions
public void setSearchOptions(DashScopeSearchOptions searchOptions)
设置搜索选项。
Sets the search options.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
searchOptions | DashScopeSearchOptions | 搜索选项(类型 `DashScopeSearchOptions`)。The search options. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:200–202getEnableCodeInterpreter
public Boolean getEnableCodeInterpreter()
获取 getEnableCodeInterpreter。
Returns the enable code interpreter.
Booleanio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:204–206setEnableCodeInterpreter
public void setEnableCodeInterpreter(Boolean enableCodeInterpreter)
设置 setEnableCodeInterpreter。
Sets the enable code interpreter.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableCodeInterpreter | Boolean | 启用 Code Interpreter(类型 `Boolean`)。The enable code interpreter. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:208–210getTools
public List<DashScopeTool> getTools()
获取工具。
Returns the tools.
List<DashScopeTool>io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:212–214setTools
public void setTools(List<DashScopeTool> tools)
设置工具。
Sets the tools.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tools | List<DashScopeTool> | 工具列表(类型 `List`)。The tools. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:216–218getToolChoice
public Object getToolChoice()
获取工具选项。
Returns the tool choice.
Objectio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:220–222setToolChoice
public void setToolChoice(Object toolChoice)
设置工具选项。
Sets the tool choice.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolChoice | Object | 工具选项(类型 `Object`)。The tool choice. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:224–226getParallelToolCalls
public Boolean getParallelToolCalls()
获取 getParallelToolCalls。
Returns the parallel tool calls.
Booleanio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:228–230setParallelToolCalls
public void setParallelToolCalls(Boolean parallelToolCalls)
设置 setParallelToolCalls。
Sets the parallel tool calls.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
parallelToolCalls | Boolean | parallel 工具调用(类型 `Boolean`)。The parallel tool calls. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:232–234getSeed
public Integer getSeed()
获取预置。
Returns the seed.
Integerio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:236–238setSeed
public void setSeed(Integer seed)
设置预置。
Sets the seed.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
seed | Integer | 预置(类型 `Integer`)。The seed. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:240–242getFrequencyPenalty
public Double getFrequencyPenalty()
获取 getFrequencyPenalty。
Returns the frequency penalty.
Doubleio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:244–246setFrequencyPenalty
public void setFrequencyPenalty(Double frequencyPenalty)
设置 setFrequencyPenalty。
Sets the frequency penalty.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
frequencyPenalty | Double | frequency Penalty(类型 `Double`)。The frequency penalty. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:248–250getPresencePenalty
public Double getPresencePenalty()
获取 getPresencePenalty。
Returns the presence penalty.
Doubleio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:252–254setPresencePenalty
public void setPresencePenalty(Double presencePenalty)
设置 setPresencePenalty。
Sets the presence penalty.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
presencePenalty | Double | 在线状态 Penalty(类型 `Double`)。The presence penalty. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:256–258getRepetitionPenalty
public Double getRepetitionPenalty()
获取 getRepetitionPenalty。
Returns the repetition penalty.
Doubleio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:260–262setRepetitionPenalty
public void setRepetitionPenalty(Double repetitionPenalty)
设置 setRepetitionPenalty。
Sets the repetition penalty.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
repetitionPenalty | Double | repetition Penalty(类型 `Double`)。The repetition penalty. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:264–266getResponseFormat
public ResponseFormat getResponseFormat()
获取响应格式。
Returns the response format.
ResponseFormatio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:268–270setResponseFormat
public void setResponseFormat(ResponseFormat responseFormat)
设置响应格式。
Sets the response format.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
responseFormat | ResponseFormat | 响应格式(类型 `ResponseFormat`)。The response format. |
io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:272–274builder
public static Builder builder()
返回构建器实例。
Returns the builder.
Builderio/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:276–278嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 resultFormat、incrementalOutput、temperature、topP、topK、maxTokens。
A class in io.agentscope.extensions.model.dashscope.dto that talks to model services and returns generated or embedded output. Declared in io.agentscope.extensions.model.dashscope.dto.