类class
agentscope.app.storageSessionSettings
class SessionSettings(BaseModel)
源码Source
agentscope/app/storage/_model/_channel.py:110–131会话设置,保存相关配置项。位于 agentscope.app.storage 包。
Settings for a session a channel or SOP run opens for a user. Declared in agentscope.app.storage.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
chat_model_config | dict[str, Any] | 聊天模型配置字段。 | — |
fallback_chat_model_config | dict[str, Any] | None | 回退聊天模型配置字段。 | None |
permission_mode | str | 权限模式字段。 | PermissionMode.DEFAULT.value |
属性详情Attribute Detail
chat_model_config
dict[str, Any]聊天模型配置字段。声明为 dict[str, Any]。
The chat model config field.
源码Source
agentscope/app/storage/_model/_channel.py:113fallback_chat_model_config
dict[str, Any] | None = None回退聊天模型配置字段。声明为 dict[str, Any] | None。
The fallback chat model config field.
源码Source
agentscope/app/storage/_model/_channel.py:117permission_mode
str = PermissionMode.DEFAULT.value权限模式字段。声明为 str。
The permission mode field.
源码Source
agentscope/app/storage/_model/_channel.py:121