fix(go-agent): add input form of ListOperationsComponent and VariableAggregatorComponent (#16987)

## Summary
- Add `GetInputForm()` for `ListOperationsComponent` to expose `Query`
input field in debug UI
- Add `GetInputForm()` for `VariableAggregatorComponent` to expose
`Variables` input field in debug UI

## Test
- Verify input form fields render correctly for both components in the
debug UI
This commit is contained in:
Hz_
2026-07-16 16:58:38 +08:00
committed by GitHub
parent d8a6cacd0a
commit 9003584e90
2 changed files with 20 additions and 0 deletions

View File

@@ -341,6 +341,16 @@ func (l *ListOperationsComponent) Stream(ctx context.Context, inputs map[string]
return ch, nil
}
// GetInputForm returns the runtime input form consumed by the debug UI.
func (l *ListOperationsComponent) GetInputForm() map[string]any {
return map[string]any{
"query": map[string]any{
"name": "Query",
"type": "line",
},
}
}
// Inputs returns the public parameter surface (declared so the editor
// can render per-input hints). All values map to the static DSL param
// unless overridden via the orchestrator's input map.

View File

@@ -241,6 +241,16 @@ func (v *VariableAggregatorComponent) Stream(ctx context.Context, inputs map[str
return ch, nil
}
// GetInputForm returns the runtime input form consumed by the debug UI.
func (v *VariableAggregatorComponent) GetInputForm() map[string]any {
return map[string]any{
"variables": map[string]any{
"name": "Variables",
"type": "line",
},
}
}
// Inputs returns the public parameter surface. The "variables" key
// accepts a runtime override of the per-group variable list (matching
// the Python get_input_form contract).