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

ChannelStatus

class ChannelStatus(BaseModel)
源码Source agentscope/app/channel/_base.py:144–155

渠道状态,把智能体接入外部消息渠道与企业平台。位于 agentscope.app.channel 包。

state transitions (all set by the adapter): stopped (default / on teardown) → connecting → connected; retrying while reconnecting after a drop; failed when the adapter gave up (parked, no more retries until the channel is edited).

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
statestr
状态字段。
'stopped'
last_errorstr
最后错误字段。
''

属性详情Attribute Detail

state

str = 'stopped'

状态字段。声明为 str。

The state field.

源码Source agentscope/app/channel/_base.py:154

last_error

str = ''

最后错误字段。声明为 str。

The last error field.

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