AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

SessionSettings

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_configdict[str, Any]
聊天模型配置字段。
—
fallback_chat_model_configdict[str, Any] | None
回退聊天模型配置字段。
None
permission_modestr
权限模式字段。
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:113

fallback_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:117

permission_mode

str = PermissionMode.DEFAULT.value

权限模式字段。声明为 str。

The permission mode field.

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