类class
agentscope.modelParameters
class Parameters(BaseModel)
源码Source
agentscope/model/_openai_response/_model.py:62–101参数用于 OpenAI 响应 API 模型。位于 agentscope.model 包。
The parameters for the OpenAI Response API model. Declared in agentscope.model.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
max_tokens | int | None | 最大令牌数字段。 | Field(default=None, title='Max Tokens', description='The maximum number of output tokens.', gt=0) |
thinking_enable | bool | `thinking_enable` 字段。 | Field(default=False, title='Thinking', description='Whether to enable reasoning for reasoning models (e.g. o3, o4-mini, gpt-5.5). Use reasoning_effort to control the depth of reasoning.') |
reasoning_effort | Literal['none', 'minimal', 'low', 'medium', 'high', 'xhigh'] | None | `reasoning_effort` 字段。 | Field(default=None, title='Reasoning Effort', description='Controls the depth of reasoning for reasoning models (e.g. o3, o4-mini, gpt-5.5). Supported values are model-dependent and may include: none, minimal, low, medium, high, xhigh.') |
temperature | float | None | `temperature` 字段。 | Field(default=None, title='Temperature', description='The temperature for the LLM output.', ge=0, le=2) |
属性详情Attribute Detail
max_tokens
int | None = Field(default=None, title='Max Tokens', description='The maximum number of output tokens.', gt=0)最大令牌数字段。声明为 int | None。
The maximum number of output tokens.
源码Source
agentscope/model/_openai_response/_model.py:65thinking_enable
bool = Field(default=False, title='Thinking', description='Whether to enable reasoning for reasoning models (e.g. o3, o4-mini, gpt-5.5). Use reasoning_effort to control the depth of reasoning.')thinking_enable 字段。声明为 bool。
Whether to enable reasoning for reasoning models (e.g.
源码Source
agentscope/model/_openai_response/_model.py:72reasoning_effort
Literal['none', 'minimal', 'low', 'medium', 'high', 'xhigh'] | None = Field(default=None, title='Reasoning Effort', description='Controls the depth of reasoning for reasoning models (e.g. o3, o4-mini, gpt-5.5). Supported values are model-dependent and may include: none, minimal, low, medium, high, xhigh.')reasoning_effort 字段。声明为 Literal['none', 'minimal', 'low', 'medium', 'high', 'xhigh'] | None。
Controls the depth of reasoning for reasoning models (e.g.
源码Source
agentscope/model/_openai_response/_model.py:82temperature
float | None = Field(default=None, title='Temperature', description='The temperature for the LLM output.', ge=0, le=2)temperature 字段。声明为 float | None。
The temperature for the LLM output.
源码Source
agentscope/model/_openai_response/_model.py:95