类class
agentscope.app.storageChatModelConfig
class ChatModelConfig(BaseModel)
源码Source
agentscope/app/storage/_model/_session.py:111–128模型配置类。位于 agentscope.app.storage 包。
The model configuration class. Declared in agentscope.app.storage.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | str | 类型字段。 | — |
credential_id | str | 凭证标识字段。 | — |
model | str | 模型字段。 | — |
model_class | str | 模型类字段。 | '' |
parameters | dict | 参数字段。 | — |
属性详情Attribute Detail
type
str类型字段。声明为 str。
The type field.
源码Source
agentscope/app/storage/_model/_session.py:114credential_id
str凭证标识字段。声明为 str。
The credential id field.
源码Source
agentscope/app/storage/_model/_session.py:117model
str模型字段。声明为 str。
The model field.
源码Source
agentscope/app/storage/_model/_session.py:120model_class
str = ''模型类字段。声明为 str。
The model class field.
源码Source
agentscope/app/storage/_model/_session.py:123parameters
dict参数字段。声明为 dict。
The parameters field.
源码Source
agentscope/app/storage/_model/_session.py:127