Context-aware · Self-verifying · Standards-aligned
built by Bohmi.com
01 — What It Is
lesson.services is production-grade infrastructure for intelligent content generation. It orchestrates multiple large language models through a resilient pipeline — routing requests across providers with automatic failover, circuit-breaker protection, and structured output validation.
Every generation run flows through a multi-stage pipeline: content construction, self-verification against educational standards, and artifact assembly. The system tracks every token, every cost, every decision — giving operators complete visibility into what was generated, how, and at what price.
02 — Who It Serves
Conversational AI tutoring with dynamically generated, context-sensitive lesson materials
Career and technical education content aligned to industry standards and certification pathways
Inclusive, differentiated content for special education — adapted for every learner profile
General education lesson planning with standards-aligned, classroom-ready materials
03 — Technology
Context-Based
Every generation is grounded in rich context provided by the calling application — subject matter, grade level, standards, learning objectives. The engine never guesses what to teach.
Self-Checking
Generated content passes through structured validation before delivery. Output shape, educational accuracy, and standards alignment are verified programmatically — not left to chance.
Standards-Aligned
Content is structured against Bloom's cognitive levels, mapped to state and national standards, and leveled for appropriate reading complexity. Every artifact is pedagogically intentional.
Multi-Model
Requests are dispatched across Claude and GPT with automatic failover. A Redis-backed circuit breaker with half-open recovery ensures the system self-heals without operator intervention.
Observable
Every LLM call is logged with provider, model, token counts, and calculated cost. Usage is aggregated per site, per day — giving operators and clients full transparency.
04 — API
lesson.services exposes a RESTful API for programmatic content generation. Authenticate with a site-scoped API key, submit generation requests with your content context, and poll for completed artifacts — articles, assessments, translations, and exports.
# Create a generation run POST /api/v1/generations # Headers X-LS-API-Key: ls_live_... Content-Type: application/json # Submit blocks, check job status, retrieve artifacts POST /api/v1/generations/{id}/blocks GET /api/v1/jobs/{job_id} GET /api/v1/artifacts/{artifact_id}