类class
agentscope.app.storageSessionScope
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:29PER_CHAT_USER
= 'per_chat_user'每个聊天用户字段。
The PER CHAT USER field.
源码Source
agentscope/app/storage/_model/_channel.py:34