类class
agentscope.app.storageChannelRecord
class ChannelRecord(_RecordBase)
源码Source
agentscope/app/storage/_model/_channel.py:134–178渠道记录,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包,继承自 _RecordBase。
id / created_at / updated_at come from
:class:_RecordBase, so this record round-trips through the generic
SQL row mapper like every other one. updated_at doubles as the
reconcile version: the lifecycle dispatcher compares it to detect
that a running instance's config has changed.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
channel_type | str | 渠道类型字段。 | — |
name | str | None | 名称字段。 | None |
user_id | str | 用户标识字段。 | — |
enabled | bool | 已启用字段。 | True |
credentials | dict[str, Any] | 凭证字段。 | Field(default_factory=dict) |
platform_config | dict[str, Any] | 平台配置字段。 | Field(default_factory=dict) |
routing | RoutingConfig | 路由字段。 | — |
session | SessionSettings | 会话字段。 | — |
属性详情Attribute Detail
channel_type
str渠道类型字段。声明为 str。
The channel type field.
源码Source
agentscope/app/storage/_model/_channel.py:147name
str | None = None名称字段。声明为 str | None。
The name field.
源码Source
agentscope/app/storage/_model/_channel.py:150user_id
str用户标识字段。声明为 str。
The user id field.
源码Source
agentscope/app/storage/_model/_channel.py:154enabled
bool = True已启用字段。声明为 bool。
The enabled field.
源码Source
agentscope/app/storage/_model/_channel.py:158credentials
dict[str, Any] = Field(default_factory=dict)凭证字段。声明为 dict[str, Any]。
The credentials field.
源码Source
agentscope/app/storage/_model/_channel.py:162platform_config
dict[str, Any] = Field(default_factory=dict)平台配置字段。声明为 dict[str, Any]。
The platform config field.
源码Source
agentscope/app/storage/_model/_channel.py:172routing
RoutingConfig路由字段。声明为 RoutingConfig。
The routing field.
源码Source
agentscope/app/storage/_model/_channel.py:177session
SessionSettings会话字段。声明为 SessionSettings。
The session field.
源码Source
agentscope/app/storage/_model/_channel.py:178