qwen-code/docs/users/features
tanzhenxin 5d58b2f112 feat: simplify subagent model configuration with model selector
Refactor subagent model configuration from nested modelConfig object to a simple model string field for better UX and clarity.

Changes:
- Replace modelConfig object with model string in SubagentConfig interface
- Add model-selection.ts utility for parsing and validating model selectors
- Support 'inherit' keyword and bare model IDs (e.g., 'glm-5', 'claude-sonnet-4-6')
- Maintain backward compatibility by parsing legacy modelConfig frontmatter
- Update validation to reject cross-provider authType-prefixed selectors
- Update SDK types (TypeScript and Java) to reflect new schema
- Add comprehensive tests for model selection and validation
- Update documentation with model selection examples

Breaking changes:
- modelConfig.frontmatter field deprecated in favor of model field
- Cross-provider model selectors (e.g., 'openai:gpt-4') not supported for subagents

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 11:49:45 +08:00
..
_meta.ts docs(arena): add Agent Arena documentation 2026-03-18 16:26:59 +08:00
approval-mode.md feat use tab on windows instead of shift+tab 2026-02-02 19:48:07 +08:00
arena.md docs(arena): add Agent Arena documentation 2026-03-18 16:26:59 +08:00
checkpointing.md feat: restructure docs 2025-12-04 18:26:05 +08:00
commands.md Merge branch 'main' into feat/claw-skill 2026-03-19 10:42:48 +08:00
headless.md feat: add system prompt customization options for CLI and SDK 2026-03-16 03:06:35 +08:00
language.md Add Japanese 2026-01-02 15:53:20 +09:00
lsp.md feat(lsp): support for loading lspServers configurations from extensions 2026-01-27 11:21:29 +08:00
mcp.md refactor: remove deprecated list and refresh MCP commands 2026-02-25 11:58:41 +08:00
sandbox.md Merge pull request #1642 from kiri-chenchen/docs/docker-java-runtime 2026-03-16 14:45:16 +08:00
skills.md feat: promote Agent Skills from experimental to stable 2026-02-06 13:04:08 +08:00
sub-agents.md feat: simplify subagent model configuration with model selector 2026-03-27 11:49:45 +08:00
token-caching.md feat: update docs 2025-12-12 19:37:36 +08:00