AS AgentScopeAPI 手册 / API Reference
类class agentscope.model

Parameters

class Parameters(BaseModel)
源码Source agentscope/model/_dashscope/_model.py:43–109

参数用于 DashScope 大模型 API。位于 agentscope.model 包。

The parameters for DashScope LLM API. Declared in agentscope.model.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
max_tokensint | None
最大令牌数字段。
Field(default=None, title='Max Tokens', description='The maximum number of tokens for the LLM output.', gt=0)
thinking_enablebool
`thinking_enable` 字段。
Field(default=False, title='Thinking', description='The thinking enable for the LLM output.')
thinking_budgetint | None
`thinking_budget` 字段。
Field(default=None, title='Thinking Budget', description='The thinking budget for the LLM output.', gt=0)
temperaturefloat | None
`temperature` 字段。
Field(default=None, title='Temperature', description='The temperature for the LLM output.', ge=0, lt=2)
top_pfloat | None
`top_p` 字段。
Field(default=None, title='Top P', description='The top P value for the LLM output.', gt=0, le=1)
top_kint | None
`top_k` 字段。
Field(default=None, title='Top K', description='The top K value for the LLM output.', gt=0, le=100)
parallel_tool_callsbool
`parallel_tool_calls` 字段。
Field(default=True, title='Parallel Tool Calls', description='If enable parallel tool calls for the LLM output.')
voicestr | None
语音字段。
Field(default=None, title='Voice', description="Voice for audio output on omni-style models (e.g. ``qwen3.5-omni-plus``). Setting this implicitly asks the model to speak its response — ``modalities`` is filled in automatically. Supported voices vary by model — see the model card's ``voice.suggestions``. Any value the API accepts works — the suggestions are convenience-only. Leave unset for text-only responses.")

属性详情Attribute Detail

max_tokens

int | None = Field(default=None, title='Max Tokens', description='The maximum number of tokens for the LLM output.', gt=0)

最大令牌数字段。声明为 int | None。

The maximum number of tokens for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:46

thinking_enable

bool = Field(default=False, title='Thinking', description='The thinking enable for the LLM output.')

thinking_enable 字段。声明为 bool。

The thinking enable for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:53

thinking_budget

int | None = Field(default=None, title='Thinking Budget', description='The thinking budget for the LLM output.', gt=0)

thinking_budget 字段。声明为 int | None。

The thinking budget for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:59

temperature

float | None = Field(default=None, title='Temperature', description='The temperature for the LLM output.', ge=0, lt=2)

temperature 字段。声明为 float | None。

The temperature for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:66

top_p

float | None = Field(default=None, title='Top P', description='The top P value for the LLM output.', gt=0, le=1)

top_p 字段。声明为 float | None。

The top P value for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:74

top_k

int | None = Field(default=None, title='Top K', description='The top K value for the LLM output.', gt=0, le=100)

top_k 字段。声明为 int | None。

The top K value for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:82

parallel_tool_calls

bool = Field(default=True, title='Parallel Tool Calls', description='If enable parallel tool calls for the LLM output.')

parallel_tool_calls 字段。声明为 bool。

If enable parallel tool calls for the LLM output.

源码Source agentscope/model/_dashscope/_model.py:90

voice

str | None = Field(default=None, title='Voice', description="Voice for audio output on omni-style models (e.g. ``qwen3.5-omni-plus``). Setting this implicitly asks the model to speak its response — ``modalities`` is filled in automatically. Supported voices vary by model — see the model card's ``voice.suggestions``. Any value the API accepts works — the suggestions are convenience-only. Leave unset for text-only responses.")

语音字段。声明为 str | None。

Voice for audio output on omni-style models (e.g.

源码Source agentscope/model/_dashscope/_model.py:96
基于官方固定版本源码静态生成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.