agentune
agentune copied to clipboard
Feat: semantic insights generator structure
What does this PR do?
Sets up the SemanticInsightsGenerator module structure with validation framework integration. LLM generation logic is stubbed out and ready for implementation.
Changes
- Created SemanticInsightsGenerator module (agentune/analyze/feature/gen/semantic_insights_generator/)
- generator.py - Main orchestrator implementing FeatureGenerator interface
- basic_generator.py - Core generation with validate_and_retry() loop (LLM calls stubbed)
- corrector.py - LLM-based SQL repair stub (returns None for now)
- llm/schema.py - GeneratedFeatureSpec dataclass (minimal dataclass, as a starter, might need more fields)
- Test reorganization
- Generator tests moved to nested folders (insightful_text_generator/, semantic_insights_generator/)
- Shared fixtures in gen/conftest.py. For now it uses the same data (conversiaional). We'll need to find a small test data, probably take a sample from one of the generated problems
- Stub test expects empty results until LLM implemented
Related Issues
Closes SparkBeyond/ao-core#113