User Input Metadata Format with Prefix Detection
Status: 🟢 In-use Category: Features & Enhancements Date: November 7, 2025
Overview​
Implemented a structured metadata format for collecting user input in Agent-Forge when sub-agents or tools require additional information. The platform-engineer agent now uses a UserInputMetaData: prefix to signal that interactive input fields should be rendered.
Field Type Reference​
| Type | Use Case | Example |
|---|---|---|
text | Short text input | Names, titles, identifiers, usernames |
textarea | Long text input | Descriptions, comments, code snippets |
number | Numeric input | IDs, counts, percentages |
select | Dropdown selection | Priority levels, branch names, statuses |
boolean | Yes/No toggle | Feature flags, confirmation switches |
Testing Strategy​
Test Queries:​
-
GitHub PR Creation:
"Create a GitHub pull request" -
Jira Issue Creation:
"Create a new Jira issue" -
Configuration Update:
"Update configuration setting"
Expected Behavior:​
- Agent responds with
UserInputMetaData:prefixed JSON - Agent-Forge detects prefix and parses JSON
- Interactive form is rendered with specified fields
- User fills out form and submits
- Agent continues workflow with provided data
Benefits​
- Structured Data Collection - Consistent format for user input across all agents
- Rich Input Types - Support for text, numbers, selections, and toggles
- Clear Detection - Prefix-based detection is explicit and reliable
- Validation Support - MetadataInputForm handles field validation
- Better UX - Interactive forms instead of free-text prompts
- Type Safety - Structured JSON with defined field types
- Extensible - Easy to add more field types in the future
Related​
- 2025-10-31: Metadata Input Implementation - Original metadata implementation
- Agent-Forge Backstage Plugin - Plugin documentation
- A2A Protocol - Agent-to-Agent communication
Date: November 7, 2025
Status: ✅ Complete
Signed-off-by: Sri Aradhyula <sraradhy@cisco.com>
- Architecture: architecture.md