类class
agentscope.app.channelConfig
class Config(BaseModel)
源码Source
agentscope/app/channel/_dingtalk/_channel.py:105–153配置,保存相关配置项。位于 agentscope.app.channel 包。
DingTalk platform options. Declared in agentscope.app.channel.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
only_at_reply | bool | `only_at_reply` 字段。 | Field(default=True, title='Reply only when mentioned', description='In group chats, reply only when the bot is @mentioned') |
show_tool_process | bool | `show_tool_process` 字段。 | Field(default=False, title='Show tool process', description='Show tool calls and results inline in the reply') |
show_thinking | bool | `show_thinking` 字段。 | Field(default=False, title='Show thinking', description="Show the model's reasoning inline in the reply") |
max_media_bytes | int | `max_media_bytes` 字段。 | Field(default=_DEFAULT_MAX_MEDIA_BYTES, ge=1, le=100 * 1024 * 1024, title='Maximum media size', description='Maximum bytes accepted for one inbound or outbound attachment') |
approval_card_template_id | str | `approval_card_template_id` 字段。 | Field(default=_APPROVAL_CARD_TEMPLATE_ID, title='Approval card template ID', description='DingTalk Card Platform template used for tool approval. Defaults to the published card the channel builds its own layout on; tool calls needing approval stall if it is cleared.') |
streaming_card_template_id | str | 流式卡片模板标识字段。 | Field(default=_AI_CARD_TEMPLATE_ID, title='Streaming card template ID', description='DingTalk AI Card template used for streaming replies. Defaults to the public template the official SDK uses; clear it to reply in plain Markdown instead.') |
streaming_card_key | str | 流式卡片键字段。 | Field(default=_AI_CARD_CONTENT_KEY, min_length=1, title='Streaming card content key', description='Template variable key of the AI Card streaming component.') |
属性详情Attribute Detail
only_at_reply
bool = Field(default=True, title='Reply only when mentioned', description='In group chats, reply only when the bot is @mentioned')only_at_reply 字段。声明为 bool。
In group chats, reply only when the bot is @mentioned
源码Source
agentscope/app/channel/_dingtalk/_channel.py:108show_tool_process
bool = Field(default=False, title='Show tool process', description='Show tool calls and results inline in the reply')show_tool_process 字段。声明为 bool。
Show tool calls and results inline in the reply
源码Source
agentscope/app/channel/_dingtalk/_channel.py:114show_thinking
bool = Field(default=False, title='Show thinking', description="Show the model's reasoning inline in the reply")show_thinking 字段。声明为 bool。
Show the model's reasoning inline in the reply
源码Source
agentscope/app/channel/_dingtalk/_channel.py:119max_media_bytes
int = Field(default=_DEFAULT_MAX_MEDIA_BYTES, ge=1, le=100 * 1024 * 1024, title='Maximum media size', description='Maximum bytes accepted for one inbound or outbound attachment')max_media_bytes 字段。声明为 int。
Maximum bytes accepted for one inbound or outbound attachment
源码Source
agentscope/app/channel/_dingtalk/_channel.py:124approval_card_template_id
str = Field(default=_APPROVAL_CARD_TEMPLATE_ID, title='Approval card template ID', description='DingTalk Card Platform template used for tool approval. Defaults to the published card the channel builds its own layout on; tool calls needing approval stall if it is cleared.')approval_card_template_id 字段。声明为 str。
DingTalk Card Platform template used for tool approval.
源码Source
agentscope/app/channel/_dingtalk/_channel.py:132streaming_card_template_id
str = Field(default=_AI_CARD_TEMPLATE_ID, title='Streaming card template ID', description='DingTalk AI Card template used for streaming replies. Defaults to the public template the official SDK uses; clear it to reply in plain Markdown instead.')流式卡片模板标识字段。声明为 str。
DingTalk AI Card template used for streaming replies.
源码Source
agentscope/app/channel/_dingtalk/_channel.py:140streaming_card_key
str = Field(default=_AI_CARD_CONTENT_KEY, min_length=1, title='Streaming card content key', description='Template variable key of the AI Card streaming component.')流式卡片键字段。声明为 str。
Template variable key of the AI Card streaming component.
源码Source
agentscope/app/channel/_dingtalk/_channel.py:147