类class
agentscope.app.channelChannelStatus
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 |
|---|---|---|---|
state | str | 状态字段。 | 'stopped' |
last_error | str | 最后错误字段。 | '' |
属性详情Attribute Detail
state
str = 'stopped'状态字段。声明为 str。
The state field.
源码Source
agentscope/app/channel/_base.py:154last_error
str = ''最后错误字段。声明为 str。
The last error field.
源码Source
agentscope/app/channel/_base.py:155