类class
agentscope.app.channelCredentials
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_token | str | `bot_token` 字段。 | Field(title='Bot Token', json_schema_extra={'format': 'password'}) |
application_id | str | 应用标识字段。 | 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:55application_id
str = Field(title='Application ID')应用标识字段。声明为 str。
Application ID
源码Source
agentscope/app/channel/_discord/_channel.py:59