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

ChannelCapability

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
textbool
文本字段。
True
markdownbool
`markdown` 字段。
False
imagebool
图像字段。
False
filebool
文件字段。
False
interactivebool
`interactive` 字段。
False
streamingbool
流式字段。
False
max_message_lengthint
最大消息长度字段。
4000
wikibool
`wiki` 字段。
False

属性详情Attribute Detail

text

bool = True

文本字段。声明为 bool。

The text field.

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

markdown

bool = False

markdown 字段。声明为 bool。

The markdown field.

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

image

bool = False

图像字段。声明为 bool。

The image field.

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

file

bool = False

文件字段。声明为 bool。

The file field.

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

interactive

bool = False

interactive 字段。声明为 bool。

The interactive field.

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

streaming

bool = False

流式字段。声明为 bool。

The streaming field.

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

max_message_length

int = 4000

最大消息长度字段。声明为 int。

The max message length field.

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

wiki

bool = False

wiki 字段。声明为 bool。

The wiki field.

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