Building and Managing Production Agents with Testing and Evaluation Infrastructure

nearpod · Education · 2023 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: K-12 educational content agents

Nearpod needed production agents for teacher-facing question generation while operating in a global K-12 context with cultural, legislative, cost, and quality constraints.

Constraints:

Architecture

Nearpod built on a data-platform foundation covering disparate sources and large datasets, then created specialized agents for input validation and question generation. An agent registry makes agents discoverable across the organization, while thousands of evals in CI measure accuracy, cost, token size, and model choices.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  data-platform[Data Platform] --> input-validation-agent[Input Validation Agent]
  input-validation-agent --> question-generation-agent[Question Generation Agent]
  question-generation-agent --> feedback-loop[Feedback Loop]
  feedback-loop --> data-platform[Data Platform]
  question-generation-agent --> evaluation-framework[Evaluation Framework]
  evaluation-framework --> agent-registry[Agent Registry]
  data-platform --> evaluation-framework[Evaluation Framework]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Data Platform Foundation for data products, feedback loops, and agent quality. Input Validation Agent, Question Generation Agent, Evaluation Framework
Input Validation Agent Validates user or workflow input before generation. Question Generation Agent, Evaluation Framework
Question Generation Agent Generates educational questions for teachers. Input Validation Agent, Feedback Loop, Evaluation Framework
Agent Registry Makes agents visible and reusable throughout the organization. Question Generation Agent, Evaluation Framework
Feedback Loop Processes production/eval data to identify what should change. Data Platform, Question Generation Agent
Evaluation Framework Runs thousands of evals and cost/quality estimates in CI. Data Platform, Agent Registry

Data flow

The data platform consolidates sources into reusable data products, an input-validation agent checks requests, a question-generation agent produces educational questions, feedback loops process evaluation data, and CI runs thousands of evals to estimate quality and cost before production use.

“you we have input validation so what that does is it it validates our input we you know we have a lot of legislature that we need to handle a lot of sensitive topics Across the Nation across the International culture that we”transcript, stated
“other teams to be closer to us right for the actual question generation that's its own domain where it's just generating questions the entire purpose of this consultant is to generate questions for all of our teachers right a and as you're thinking about this”transcript, stated

Why this architecture

Nearpod narrowed agents into specialized domains because smaller scopes reduce token use, cost, and complexity. The data platform and eval framework are the backbone: they make feedback loops, cost estimation, CI gates, and cross-departmental reuse possible.

“with the tool you want to narrow that scope 100 times at when possible you want to narrow it as as much as possible”transcript, stated
“then this is where the data platform comes in because you can again you're sending data on the on the front end”transcript, stated

Models used: LLMs · cheaper models · specialized agents

Scale

Alternatives considered (roads not taken)

Broad, general-purpose agents.

Rejected because: The team emphasized narrowing scope as much as possible to reduce cost and complexity.

“with the tool you want to narrow that scope 100 times at when possible you want to narrow it as as much as possible because and he gave me the example of if you are trying to have an AG write a sequel statement or if the agent just has hundreds of sequel statements”transcript, stated

Use expensive models by default.

Rejected because: Evals showed cheaper models could reach the required accuracy when prompts and tokens were optimized.

“results to the tune of 98 to 100% accuracy in our evals for a lower cost because we're able to use better like cheaper models and whatnot and why do you think that is because you're passing in more context you're giving it better information what”transcript, stated

Let agent cost remain unknown until production.

Rejected because: Nearpod estimates production cost from evals, usage, token size, and call count before rollout.

“our evals and create an approximation for how much it's going to cost us in production based on usage and other metrics we're looking at whoa and how how did you do that because that's fascinating I don't even know where you would start with that trying to think”transcript, stated

Patterns

multi-agent-orchestration (agent architecture)

Input validation and question generation are separated into specialized agents.

“we have input validation so what that does is it it validates our”transcript, stated

eval-driven-development (release quality)

Thousands of CI evals give confidence in each agent's accuracy.

“cicd pipelines we're able to get thousands of evals for each agent to run with confidence levels”transcript, stated

cost-aware-routing (model operations)

Evals and token accounting guide cheaper model use and production cost estimates.

“what is the cost and and what is the quality and how do we optimize for those”transcript, stated

data-quality-loop (feedback)

The data platform processes feedback to understand what should be updated.

“start processing this data and build a feedback loop to understand what can we update”transcript, stated

Tradeoffs

Agent scope

Chose Narrow specialized agents over Broad general agents.

Rationale: Narrow agents require fewer tokens, run cheaper, and are easier to evaluate.

“as you have specialized agents you're typically going to have less tokens and so they can run and get whatever they need”transcript, stated

Model cost

Chose Cheaper models where evals prove quality over Defaulting to expensive models.

Rationale: Nearpod could maintain 98-100% eval accuracy at lower cost.

“98 to 100% accuracy in our evals for a lower cost because we're able to use better like cheaper models”transcript, stated

Release confidence

Chose Thousands of CI evals over Manual confidence alone.

Rationale: A large eval suite gives release confidence in a regulated, global education context.

“thousands of evals for each agent to run with confidence levels of getting the right result 98 to 100% of the time”transcript, stated

Gotchas (what bit them)

Educational agents have high-context safety and localization demands.

Root cause: K-12 content varies by students, parents, legislation, language, and culture.

Resolution: Use strict evals and domain-scoped agents rather than generic generation.

“we have to consider the students the parents the state legislature we have to the C country legislature”transcript, stated

Agent costs can balloon with token size and call count.

Root cause: Prompt sentences, number of prompts, and production usage multiply cost.

Resolution: Use evals to estimate production cost and optimize tokens/calls before rollout.

“we need to identify how we can reduce our token size how we can reduce the number of calls”transcript, stated

Long agent projects create sunk-cost pressure.

Root cause: Without fast POCs and evals, teams can spend months before discovering a weak agent.

Resolution: Build POCs in hours and use eval evidence to shut down weak ideas early.

“if it takes 7 hours to build this we can give you a POC to see”transcript, stated

Evaluation

Nearpod runs a custom evaluation framework with thousands of CI evals per agent, measuring correctness, cost, token size, call count, and cheaper-model feasibility.

Metrics: 98-100% eval accuracy · Thousands of evals · Token size · Number of calls · Production cost estimate

“thousands of evals that are very similar in you know in tdd”transcript, stated
“able to assess how much each of these agents are costing us based off our evals”transcript, stated

Outcomes

The source reports global K-12 operation, millions to billions of rows, seven-hour POCs versus 60-day-plus prior timelines, and thousands of evals per agent.

“now we're building an agent registry that's able to be seen and utilized throughout our”transcript, stated
“it took us seven hours to build something like this right which in the past is something that's just unimaginable we would have had to take 60 days”transcript, stated