You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enforce file paths in agentic outputs with JSON schema validation
Agentic tools were returning abstract component references without file
locations, making it impossible for downstream agents to drill into code.
This change enforces structured outputs with required file_path fields
using JSON Schema validation at the LLM provider level.
- Add comprehensive schemas for all 7 agentic tools in agentic_schemas.rs
- Each schema combines freeform analysis field with structured arrays
- FileLocation type enforces name, file_path, and optional line_number
- Schemas passed to LLM via response_format in GenerationConfig
- AutoAgents adapter converts StructuredOutputFormat to ResponseFormat
- MCP handler parses and surfaces structured_output in responses
- Test script updated to extract and display file locations
Benefits: File paths are mandatory, agents can navigate to exact code,
consistent data structure enables better agent-to-agent collaboration.
0 commit comments