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

SessionScope

class SessionScope(str, Enum)
源码Source agentscope/app/storage/_model/_channel.py:22–36

会话范围,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包,继承自 str, Enum。

Scope is chat-centric: the session key is a projection of the (chat_id, user_id) pair.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
PER_CHAT—
每个聊天字段。
'per_chat'
PER_CHAT_USER—
每个聊天用户字段。
'per_chat_user'

属性详情Attribute Detail

PER_CHAT

 = 'per_chat'

每个聊天字段。

The PER CHAT field.

源码Source agentscope/app/storage/_model/_channel.py:29

PER_CHAT_USER

 = 'per_chat_user'

每个聊天用户字段。

The PER CHAT USER field.

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