mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
docs(channels): document attachments and block streaming features
- Add Attachments interface docs with handling examples - Document block streaming configuration and behavior - Update architecture diagrams to show attachment resolution - Add Attachment type to exported types reference - Update plugin-example README Covers new structured attachment support and block streaming that delivers responses as multiple progressive messages. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
3e0f213ea3
commit
39103eea5f
4 changed files with 161 additions and 41 deletions
|
|
@ -94,4 +94,11 @@ See `src/MockPluginChannel.ts` for a working example. The key points:
|
|||
3. Export a `plugin` object conforming to `ChannelPlugin`
|
||||
4. Add a `qwen-extension.json` manifest
|
||||
|
||||
### Features you get for free
|
||||
|
||||
- **Block streaming** — enable `blockStreaming: "on"` in config and the agent's response is automatically split into multiple messages at paragraph boundaries
|
||||
- **Attachments** — populate `envelope.attachments` with images/files and `handleInbound()` routes them to the agent (images as vision input, files as paths in the prompt)
|
||||
- **Streaming hooks** — override `onResponseChunk()` for progressive display (e.g., editing a message in-place)
|
||||
- Access control (allowlist, pairing, open), session routing, slash commands, crash recovery
|
||||
|
||||
Full guide: [Channel Plugin Developer Guide](../../docs/developers/channel-plugins.md)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue