类class
agentscope.app.channelChannelCapability
class ChannelCapability(BaseModel)
源码Source
agentscope/app/channel/_base.py:272–300渠道能力,把智能体接入外部消息渠道与企业平台。位于 agentscope.app.channel 包。
Flags describe the send direction (agent → platform) unless the flag says otherwise.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
text | bool | 文本字段。 | True |
markdown | bool | `markdown` 字段。 | False |
image | bool | 图像字段。 | False |
file | bool | 文件字段。 | False |
interactive | bool | `interactive` 字段。 | False |
streaming | bool | 流式字段。 | False |
max_message_length | int | 最大消息长度字段。 | 4000 |
wiki | bool | `wiki` 字段。 | False |
属性详情Attribute Detail
text
bool = True文本字段。声明为 bool。
The text field.
源码Source
agentscope/app/channel/_base.py:279markdown
bool = Falsemarkdown 字段。声明为 bool。
The markdown field.
源码Source
agentscope/app/channel/_base.py:280image
bool = False图像字段。声明为 bool。
The image field.
源码Source
agentscope/app/channel/_base.py:281file
bool = False文件字段。声明为 bool。
The file field.
源码Source
agentscope/app/channel/_base.py:282interactive
bool = Falseinteractive 字段。声明为 bool。
The interactive field.
源码Source
agentscope/app/channel/_base.py:283streaming
bool = False流式字段。声明为 bool。
The streaming field.
源码Source
agentscope/app/channel/_base.py:288max_message_length
int = 4000最大消息长度字段。声明为 int。
The max message length field.
源码Source
agentscope/app/channel/_base.py:293wiki
bool = Falsewiki 字段。声明为 bool。
The wiki field.
源码Source
agentscope/app/channel/_base.py:296