AS AgentScopeAPI 手册 / API Reference

DashScopeParameters

@JsonInclude(JsonInclude.Include.NON_NULL) public class DashScopeParameters
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:28–387

DashScope 参数,与模型服务通信并返回生成或向量化结果。位于 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

方法Method说明Description
public String getResultFormat()
获取结果格式。
Returns the result format.
public void setResultFormat(String resultFormat)
设置结果格式。
Sets the result format.
public Boolean getIncrementalOutput()
获取 `getIncrementalOutput`。
Returns the incremental output.
public void setIncrementalOutput(Boolean incrementalOutput)
设置 `setIncrementalOutput`。
Sets the incremental output.
public Double getTemperature()
获取 `getTemperature`。
Returns the temperature.
public void setTemperature(Double temperature)
设置 `setTemperature`。
Sets the temperature.
public Double getTopP()
获取 `getTopP`。
Returns the top p.
public void setTopP(Double topP)
设置 `setTopP`。
Sets the top p.
public Integer getTopK()
获取 `getTopK`。
Returns the top k.
public void setTopK(Integer topK)
设置 `setTopK`。
Sets the top k.
public Integer getMaxTokens()
获取最大令牌数。
Returns the max tokens.
public void setMaxTokens(Integer maxTokens)
设置最大令牌数。
Sets the max tokens.
public List<String> getStop()
获取停止。
Returns the stop.
public void setStop(List<String> stop)
设置停止。
Sets the stop.
public Boolean getEnableThinking()
获取 `getEnableThinking`。
Returns the enable thinking.
public void setEnableThinking(Boolean enableThinking)
设置 `setEnableThinking`。
Sets the enable thinking.
public Integer getThinkingBudget()
获取 `getThinkingBudget`。
Returns the thinking budget.
public void setThinkingBudget(Integer thinkingBudget)
设置 `setThinkingBudget`。
Sets the thinking budget.
public Boolean getEnableSearch()
获取启用搜索。
Returns the enable search.
public void setEnableSearch(Boolean enableSearch)
设置启用搜索。
Sets the enable search.
public DashScopeSearchOptions getSearchOptions()
获取搜索选项。
Returns the search options.
public void setSearchOptions(DashScopeSearchOptions searchOptions)
设置搜索选项。
Sets the search options.
public Boolean getEnableCodeInterpreter()
获取 `getEnableCodeInterpreter`。
Returns the enable code interpreter.
public void setEnableCodeInterpreter(Boolean enableCodeInterpreter)
设置 `setEnableCodeInterpreter`。
Sets the enable code interpreter.
public List<DashScopeTool> getTools()
获取工具。
Returns the tools.
public void setTools(List<DashScopeTool> tools)
设置工具。
Sets the tools.
public Object getToolChoice()
获取工具选项。
Returns the tool choice.
public void setToolChoice(Object toolChoice)
设置工具选项。
Sets the tool choice.
public Boolean getParallelToolCalls()
获取 `getParallelToolCalls`。
Returns the parallel tool calls.
public void setParallelToolCalls(Boolean parallelToolCalls)
设置 `setParallelToolCalls`。
Sets the parallel tool calls.
public Integer getSeed()
获取预置。
Returns the seed.
public void setSeed(Integer seed)
设置预置。
Sets the seed.
public Double getFrequencyPenalty()
获取 `getFrequencyPenalty`。
Returns the frequency penalty.
public void setFrequencyPenalty(Double frequencyPenalty)
设置 `setFrequencyPenalty`。
Sets the frequency penalty.
public Double getPresencePenalty()
获取 `getPresencePenalty`。
Returns the presence penalty.
public void setPresencePenalty(Double presencePenalty)
设置 `setPresencePenalty`。
Sets the presence penalty.
public Double getRepetitionPenalty()
获取 `getRepetitionPenalty`。
Returns the repetition penalty.
public void setRepetitionPenalty(Double repetitionPenalty)
设置 `setRepetitionPenalty`。
Sets the repetition penalty.
public ResponseFormat getResponseFormat()
获取响应格式。
Returns the response format.
public void setResponseFormat(ResponseFormat responseFormat)
设置响应格式。
Sets the response format.
public static Builder builder()
static
返回构建器实例。
Returns the builder.

构造器详情Constructor Detail

DashScopeParameters

public DashScopeParameters()

初始化 DashScopeParameters 实例。

Creates a new instance.

源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:114

方法详情Method Detail

getResultFormat

public String getResultFormat()

获取结果格式。

Returns the result format.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:116–118

setResultFormat

public void setResultFormat(String resultFormat)

设置结果格式。

Sets the result format.

参数Parameters
名称Name类型Type说明Description
resultFormatString结果格式(类型 `String`)。The result format.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:120–122

getIncrementalOutput

public Boolean getIncrementalOutput()

获取 getIncrementalOutput。

Returns the incremental output.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:124–126

setIncrementalOutput

public void setIncrementalOutput(Boolean incrementalOutput)

设置 setIncrementalOutput。

Sets the incremental output.

参数Parameters
名称Name类型Type说明Description
incrementalOutputBooleanincremental 输出(类型 `Boolean`)。The incremental output.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:128–130

getTemperature

public Double getTemperature()

获取 getTemperature。

Returns the temperature.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:132–134

setTemperature

public void setTemperature(Double temperature)

设置 setTemperature。

Sets the temperature.

参数Parameters
名称Name类型Type说明Description
temperatureDoubletemperature(类型 `Double`)。The temperature.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:136–138

getTopP

public Double getTopP()

获取 getTopP。

Returns the top p.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:140–142

setTopP

public void setTopP(Double topP)

设置 setTopP。

Sets the top p.

参数Parameters
名称Name类型Type说明Description
topPDoubletop P(类型 `Double`)。The top p.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:144–146

getTopK

public Integer getTopK()

获取 getTopK。

Returns the top k.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:148–150

setTopK

public void setTopK(Integer topK)

设置 setTopK。

Sets the top k.

参数Parameters
名称Name类型Type说明Description
topKIntegertop K(类型 `Integer`)。The top k.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:152–154

getMaxTokens

public Integer getMaxTokens()

获取最大令牌数。

Returns the max tokens.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:156–158

setMaxTokens

public void setMaxTokens(Integer maxTokens)

设置最大令牌数。

Sets the max tokens.

参数Parameters
名称Name类型Type说明Description
maxTokensInteger最大令牌数(类型 `Integer`)。The max tokens.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:160–162

getStop

public List<String> getStop()

获取停止。

Returns the stop.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:164–166

setStop

public void setStop(List<String> stop)

设置停止。

Sets the stop.

参数Parameters
名称Name类型Type说明Description
stopList<String>停止(类型 `List`)。The stop.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:168–170

getEnableThinking

public Boolean getEnableThinking()

获取 getEnableThinking。

Returns the enable thinking.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:172–174

setEnableThinking

public void setEnableThinking(Boolean enableThinking)

设置 setEnableThinking。

Sets the enable thinking.

参数Parameters
名称Name类型Type说明Description
enableThinkingBoolean启用 Thinking(类型 `Boolean`)。The enable thinking.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:176–178

getThinkingBudget

public Integer getThinkingBudget()

获取 getThinkingBudget。

Returns the thinking budget.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:180–182

setThinkingBudget

public void setThinkingBudget(Integer thinkingBudget)

设置 setThinkingBudget。

Sets the thinking budget.

参数Parameters
名称Name类型Type说明Description
thinkingBudgetIntegerthinking 预算(类型 `Integer`)。The thinking budget.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:184–186

getEnableSearch

public Boolean getEnableSearch()

获取启用搜索。

Returns the enable search.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:188–190

setEnableSearch

public void setEnableSearch(Boolean enableSearch)

设置启用搜索。

Sets the enable search.

参数Parameters
名称Name类型Type说明Description
enableSearchBoolean启用搜索(类型 `Boolean`)。The enable search.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:192–194

getSearchOptions

public DashScopeSearchOptions getSearchOptions()

获取搜索选项。

Returns the search options.

返回Returns DashScopeSearchOptions
返回DashScopeSearchOptions。Returns DashScope search options.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:196–198

setSearchOptions

public void setSearchOptions(DashScopeSearchOptions searchOptions)

设置搜索选项。

Sets the search options.

参数Parameters
名称Name类型Type说明Description
searchOptionsDashScopeSearchOptions搜索选项(类型 `DashScopeSearchOptions`)。The search options.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:200–202

getEnableCodeInterpreter

public Boolean getEnableCodeInterpreter()

获取 getEnableCodeInterpreter。

Returns the enable code interpreter.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:204–206

setEnableCodeInterpreter

public void setEnableCodeInterpreter(Boolean enableCodeInterpreter)

设置 setEnableCodeInterpreter。

Sets the enable code interpreter.

参数Parameters
名称Name类型Type说明Description
enableCodeInterpreterBoolean启用 Code Interpreter(类型 `Boolean`)。The enable code interpreter.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:208–210

getTools

public List<DashScopeTool> getTools()

获取工具。

Returns the tools.

返回Returns List<DashScopeTool>
返回列出。Returns list.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:212–214

setTools

public void setTools(List<DashScopeTool> tools)

设置工具。

Sets the tools.

参数Parameters
名称Name类型Type说明Description
toolsList<DashScopeTool>工具列表(类型 `List`)。The tools.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:216–218

getToolChoice

public Object getToolChoice()

获取工具选项。

Returns the tool choice.

返回Returns Object
返回对象。Returns object.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:220–222

setToolChoice

public void setToolChoice(Object toolChoice)

设置工具选项。

Sets the tool choice.

参数Parameters
名称Name类型Type说明Description
toolChoiceObject工具选项(类型 `Object`)。The tool choice.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:224–226

getParallelToolCalls

public Boolean getParallelToolCalls()

获取 getParallelToolCalls。

Returns the parallel tool calls.

返回Returns Boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:228–230

setParallelToolCalls

public void setParallelToolCalls(Boolean parallelToolCalls)

设置 setParallelToolCalls。

Sets the parallel tool calls.

参数Parameters
名称Name类型Type说明Description
parallelToolCallsBooleanparallel 工具调用(类型 `Boolean`)。The parallel tool calls.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:232–234

getSeed

public Integer getSeed()

获取预置。

Returns the seed.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:236–238

setSeed

public void setSeed(Integer seed)

设置预置。

Sets the seed.

参数Parameters
名称Name类型Type说明Description
seedInteger预置(类型 `Integer`)。The seed.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:240–242

getFrequencyPenalty

public Double getFrequencyPenalty()

获取 getFrequencyPenalty。

Returns the frequency penalty.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:244–246

setFrequencyPenalty

public void setFrequencyPenalty(Double frequencyPenalty)

设置 setFrequencyPenalty。

Sets the frequency penalty.

参数Parameters
名称Name类型Type说明Description
frequencyPenaltyDoublefrequency Penalty(类型 `Double`)。The frequency penalty.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:248–250

getPresencePenalty

public Double getPresencePenalty()

获取 getPresencePenalty。

Returns the presence penalty.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:252–254

setPresencePenalty

public void setPresencePenalty(Double presencePenalty)

设置 setPresencePenalty。

Sets the presence penalty.

参数Parameters
名称Name类型Type说明Description
presencePenaltyDouble在线状态 Penalty(类型 `Double`)。The presence penalty.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:256–258

getRepetitionPenalty

public Double getRepetitionPenalty()

获取 getRepetitionPenalty。

Returns the repetition penalty.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:260–262

setRepetitionPenalty

public void setRepetitionPenalty(Double repetitionPenalty)

设置 setRepetitionPenalty。

Sets the repetition penalty.

参数Parameters
名称Name类型Type说明Description
repetitionPenaltyDoublerepetition Penalty(类型 `Double`)。The repetition penalty.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:264–266

getResponseFormat

public ResponseFormat getResponseFormat()

获取响应格式。

Returns the response format.

返回Returns ResponseFormat
返回ResponseFormat。Returns response format.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:268–270

setResponseFormat

public void setResponseFormat(ResponseFormat responseFormat)

设置响应格式。

Sets the response format.

参数Parameters
名称Name类型Type说明Description
responseFormatResponseFormat响应格式(类型 `ResponseFormat`)。The response format.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeParameters.java:272–274

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/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.

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.