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

Credentials

class Credentials(BaseModel)
源码Source agentscope/app/channel/_discord/_channel.py:52–59

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

Discord bot credentials. Declared in agentscope.app.channel.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
bot_tokenstr
`bot_token` 字段。
Field(title='Bot Token', json_schema_extra={'format': 'password'})
application_idstr
应用标识字段。
Field(title='Application ID')

属性详情Attribute Detail

bot_token

str = Field(title='Bot Token', json_schema_extra={'format': 'password'})

bot_token 字段。声明为 str。

Bot Token

源码Source agentscope/app/channel/_discord/_channel.py:55

application_id

str = Field(title='Application ID')

应用标识字段。声明为 str。

Application ID

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