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

ChannelBinding

class ChannelBinding(BaseModel)
源码Source agentscope/app/storage/_model/_channel.py:39–59

渠道绑定,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包。

Rules are evaluated in list order; the first match wins. The final rule must be a catch-all (match_value == "*") — it carries the channel's defaults.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
match_keystr
`match_key` 字段。
'chat_id'
match_valuestr
`match_value` 字段。
'*'
agent_idstr
智能体标识字段。
—
session_scopeSessionScope
会话范围字段。
SessionScope.PER_CHAT

属性详情Attribute Detail

match_key

str = 'chat_id'

match_key 字段。声明为 str。

The match key field.

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

match_value

str = '*'

match_value 字段。声明为 str。

The match value field.

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

agent_id

str

智能体标识字段。声明为 str。

The agent id field.

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

session_scope

SessionScope = SessionScope.PER_CHAT

会话范围字段。声明为 SessionScope。

The session scope field.

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