类class
agentscope.app.storageSessionSource
class SessionSource(str, Enum)
源码Source
agentscope/app/storage/_model/_session.py:15–26会话来源,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包,继承自 str, Enum。
Superseded by :data:SessionOrigin, whose tag carries the same
values. Kept importable, and comparable to
:attr:SessionRecord.source, so integrations pinned to the old name
keep working while they move.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
USER | — | 用户字段。 | 'user' |
SCHEDULE | — | 调度字段。 | 'schedule' |
CHANNEL | — | 渠道字段。 | 'channel' |
属性详情Attribute Detail
USER
= 'user'用户字段。
The USER field.
源码Source
agentscope/app/storage/_model/_session.py:24SCHEDULE
= 'schedule'调度字段。
The SCHEDULE field.
源码Source
agentscope/app/storage/_model/_session.py:25CHANNEL
= 'channel'渠道字段。
The CHANNEL field.
源码Source
agentscope/app/storage/_model/_session.py:26