feat: AI 测试对话框增加动态参数表单和参数定义编辑
- 测试对话框支持从 defaultInputs 解析参数并渲染动态表单 - 支持 _meta 格式的参数定义(label/type/required/value) - 接口工作流编辑页面增加参数定义区域(增删改) - 后端 AiTemplateRenderer.mergeInputs 兼容 _meta 格式 - JSON 编辑区折叠为「高级编辑」模式 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -270,6 +270,23 @@ export interface AiEndpointRuntimeRequest {
|
||||
inputs: Record<string, any>
|
||||
}
|
||||
|
||||
export interface TestParamField {
|
||||
name: string
|
||||
label: string
|
||||
type: 'string' | 'textarea' | 'number' | 'boolean'
|
||||
value: any
|
||||
defaultValue: any
|
||||
required: boolean
|
||||
}
|
||||
|
||||
export interface ParamDefinition {
|
||||
name: string
|
||||
label: string
|
||||
type: 'string' | 'textarea' | 'number' | 'boolean'
|
||||
defaultValue: any
|
||||
required: boolean
|
||||
}
|
||||
|
||||
export interface AiRuntimeTestResponse {
|
||||
sceneCode: string
|
||||
status: string
|
||||
|
||||
Reference in New Issue
Block a user