Error
Context
Generate AI analysis for a context
Loads the context from Redis, sends the job description, role, and role level to the AI model, and returns enriched context data including:
- summary — AI-generated summary of the role
- categories — Structured evaluation categories
- category_titles — Comma-separated list of category names
- metrics — Assessment metrics for the role
The generated data is also saved to the Prompt Library (PL) service.
GET
Generate AI analysis for a context
Authorizations
User JWT token passed in Authorization header
Headers
Required JWT permission: council_sage (informational only -- enforced server-side)
Path Parameters
UUID of the context record
Response
Context generated and saved successfully
Context enriched with AI-generated analysis
AI-generated summary of the role requirements
Structured evaluation categories produced by AI
Comma-separated quoted category names
Assessment metrics for the role