Initial TrueGrowth source import
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Change: add agent skill media model selectors
|
||||
|
||||
## Why
|
||||
Agent 模式选择图片、视频、音频或 PPT 类 Skill 时,当前输入栏只暴露文本模型选择,用户无法明确控制后续媒体生成工具实际使用的模型。
|
||||
|
||||
## What Changes
|
||||
- Agent 模式保留文本模型选择器,用于 `ai_analyze`
|
||||
- 当用户明确选择媒体类 Skill 时,在输入栏追加对应媒体模型选择器
|
||||
- PPT 类 Skill 复用图片模型选择器
|
||||
- 将所选媒体模型和 `modelRef` 透传到 Agent 动态工具调用和 Skill 解析出的媒体步骤
|
||||
|
||||
## Impact
|
||||
- Affected specs: ai-input-generation
|
||||
- Affected code: `AIInputBar`、`SkillDropdown`、`workflow-converter`、`ai-analyze`、`AgentExecutionContext`
|
||||
@@ -0,0 +1,48 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Agent Skill Media Model Selectors
|
||||
|
||||
The AI input bar SHALL show additional media model selectors when Agent mode has an explicitly selected Skill that is known to invoke media generation.
|
||||
|
||||
#### Scenario: Image or PPT Skill selected
|
||||
- **GIVEN** the user is in Agent mode
|
||||
- **AND** the selected Skill is classified as image or PPT output
|
||||
- **WHEN** the input bar renders
|
||||
- **THEN** it SHALL keep the text model selector for Agent analysis
|
||||
- **AND** it SHALL show an image model selector for the Skill's media generation
|
||||
|
||||
#### Scenario: Video Skill selected
|
||||
- **GIVEN** the user is in Agent mode
|
||||
- **AND** the selected Skill is classified as video output
|
||||
- **WHEN** the input bar renders
|
||||
- **THEN** it SHALL keep the text model selector for Agent analysis
|
||||
- **AND** it SHALL show a video model selector for the Skill's media generation
|
||||
|
||||
#### Scenario: Audio Skill selected
|
||||
- **GIVEN** the user is in Agent mode
|
||||
- **AND** the selected Skill is classified as audio output
|
||||
- **WHEN** the input bar renders
|
||||
- **THEN** it SHALL keep the text model selector for Agent analysis
|
||||
- **AND** it SHALL show an audio model selector for the Skill's media generation
|
||||
|
||||
#### Scenario: Auto Skill selected
|
||||
- **GIVEN** the user is in Agent mode
|
||||
- **AND** the selected Skill is Auto
|
||||
- **WHEN** the input bar renders
|
||||
- **THEN** it SHALL NOT show additional media model selectors
|
||||
|
||||
### Requirement: Agent Skill Media Model Routing
|
||||
|
||||
Agent and Skill workflows SHALL pass selected media model IDs and model references to downstream media generation tools.
|
||||
|
||||
#### Scenario: Dynamic media tool call
|
||||
- **GIVEN** Agent analysis emits a media generation tool call without a model
|
||||
- **WHEN** the execution context contains a selected model for that media type
|
||||
- **THEN** the generated workflow step SHALL include that selected model
|
||||
- **AND** it SHALL include the matching `modelRef` when available
|
||||
|
||||
#### Scenario: Parsed Skill workflow step
|
||||
- **GIVEN** a Skill DSL resolves directly to a media generation workflow step
|
||||
- **WHEN** the execution context contains a selected model for that media type
|
||||
- **THEN** the workflow step SHALL use the selected media model
|
||||
- **AND** it SHALL include the matching `modelRef` when available
|
||||
@@ -0,0 +1,6 @@
|
||||
## 1. Implementation
|
||||
- [x] 1.1 推断 Skill 涉及的媒体类型
|
||||
- [x] 1.2 在 Agent 输入栏追加媒体模型选择器
|
||||
- [x] 1.3 透传媒体模型与 `modelRef`
|
||||
- [x] 1.4 为动态工具调用注入媒体模型
|
||||
- [x] 1.5 补充回归测试并验证
|
||||
Reference in New Issue
Block a user