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

Config

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_replybool
`only_at_reply` 字段。
Field(default=True, title='Reply only when mentioned', description='In group chats, reply only when the bot is @mentioned')
show_tool_processbool
`show_tool_process` 字段。
Field(default=False, title='Show tool process', description='Show tool calls and results inline in the reply')
show_thinkingbool
`show_thinking` 字段。
Field(default=False, title='Show thinking', description="Show the model's reasoning inline in the reply")
max_media_bytesint
`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_idstr
`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_idstr
流式卡片模板标识字段。
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_keystr
流式卡片键字段。
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:108

show_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:114

show_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:119

max_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:124

approval_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:132

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.')

流式卡片模板标识字段。声明为 str。

DingTalk AI Card template used for streaming replies.

源码Source agentscope/app/channel/_dingtalk/_channel.py:140

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.')

流式卡片键字段。声明为 str。

Template variable key of the AI Card streaming component.

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