Generate Insights
POST /api/agents/research/insights
Generate strategic insights from research results.
Routes through :class:LaganResearchInsightsHandler after Phase A12
of the M15 migration; the legacy Lagan-LLM fallback was retired
with the LLM provider stack.
Request Body required
Section titled “Request Body required ”Request for strategic insight generation.
Generates strategic insights from provided research results at configurable depth levels.
Fields:
query: Research question or topic for contextresults: List of results to analyze for insights (required, non-empty)insight_level: Depth of insight generation
Insight Levels:
surface: Quick summary insightsanalytical: Detailed analytical insightsstrategic: Strategic patterns and implicationsprophetic: Predictive insights and future implications
Usage: Used to generate insights from existing research results.
Integration:
- ResearchRoutes: Request validation for /research/insights endpoint
- LaganAgent: Insight generation processing
object
Research question or topic
Results to analyze for insights
object
Depth of insight generation
Responses
Section titled “ Responses ”Successful Response
Response with generated strategic insights.
Provides generated insights, key themes, and actionable recommendations derived from analyzed results.
Fields:
success: Whether insight generation was successfulquery: Original query for contextinsights: List of generated strategic insightskey_themes: Key themes identified across resultsrecommendations: Actionable recommendations based on insightsconfidence: Overall insight confidence score (0.0-1.0)
Usage: Returned by insight generation endpoints.
Integration:
- ResearchRoutes: Response model for /research/insights endpoint
- Frontend: Insights display and recommendations
object
Whether insight generation was successful
Original query
Generated strategic insights
Key themes identified across results
Actionable recommendations
Insight confidence score
Validation Error