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

ChannelRecord

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_typestr
渠道类型字段。
—
namestr | None
名称字段。
None
user_idstr
用户标识字段。
—
enabledbool
已启用字段。
True
credentialsdict[str, Any]
凭证字段。
Field(default_factory=dict)
platform_configdict[str, Any]
平台配置字段。
Field(default_factory=dict)
routingRoutingConfig
路由字段。
—
sessionSessionSettings
会话字段。
—

属性详情Attribute Detail

channel_type

str

渠道类型字段。声明为 str。

The channel type field.

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

name

str | None = None

名称字段。声明为 str | None。

The name field.

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

user_id

str

用户标识字段。声明为 str。

The user id field.

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

enabled

bool = True

已启用字段。声明为 bool。

The enabled field.

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

credentials

dict[str, Any] = Field(default_factory=dict)

凭证字段。声明为 dict[str, Any]。

The credentials field.

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

platform_config

dict[str, Any] = Field(default_factory=dict)

平台配置字段。声明为 dict[str, Any]。

The platform config field.

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

routing

RoutingConfig

路由字段。声明为 RoutingConfig。

The routing field.

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

session

SessionSettings

会话字段。声明为 SessionSettings。

The session field.

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