mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
docs(channels): add custom channel plugins documentation
- Document channels config in extension manifest - Add guide for creating custom channel adapters - Explain ChannelPlugin interface and ChannelBase usage This enables users to extend the channel system with custom platform adapters. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
0f9e4409df
commit
01c2e5a373
4 changed files with 253 additions and 1 deletions
|
|
@ -19,6 +19,8 @@ All channels share one agent process with isolated sessions per user. Each chann
|
|||
2. Add the channel configuration to `~/.qwen/settings.json`
|
||||
3. Run `qwen channel start` to start all channels, or `qwen channel start <name>` for a single channel
|
||||
|
||||
Want to connect a platform that isn't built in? See [Custom Channel Plugins](./custom-channels) to build your own adapter as an extension.
|
||||
|
||||
## Configuration
|
||||
|
||||
Channels are configured under the `channels` key in `settings.json`. Each channel has a name and a set of options:
|
||||
|
|
@ -47,7 +49,7 @@ Channels are configured under the `channels` key in `settings.json`. Each channe
|
|||
|
||||
| Option | Required | Description |
|
||||
| -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `type` | Yes | Channel type: `telegram`, `weixin`, or `dingtalk` |
|
||||
| `type` | Yes | Channel type: `telegram`, `weixin`, `dingtalk`, or a custom type from an extension (see [Custom Channel Plugins](./custom-channels)) |
|
||||
| `token` | Telegram | Bot token. Supports `$ENV_VAR` syntax to read from environment variables. Not needed for WeChat or DingTalk |
|
||||
| `clientId` | DingTalk | DingTalk AppKey. Supports `$ENV_VAR` syntax |
|
||||
| `clientSecret` | DingTalk | DingTalk AppSecret. Supports `$ENV_VAR` syntax |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue