Module 7

Production Vocabulary

Taking an agent to production comes with a run of terms: gateway, token budgeting, evals, observability. None of them is hard, but hearing six new words in an hour is. Read this once and they will be familiar.

About 25 minPreps you for: Production topics: cost, evals, observability, guardrails

Tokens, cost and latency

A token is a chunk of text, about three quarters of a word. You pay for tokens going in (your prompt, files, tool results, the whole conversation history) and tokens coming out (the reply). Output tokens cost more than input tokens.

The same job on three models, 1,000 requests of 2,000 tokens in and 500 out:

ModelInput price / 1MOutput price / 1MThis job costs
Haiku 5.5$0.10$0.50$0.45
Sonnet 5.5$2.00$10.00$9.00
Opus 5.5$4.00$20.00$18.00

That spread is why token budgeting is a design decision. The three levers are: pick the smallest model that does the job, send less context, and cap the output with max_tokens. Latency is how long the user waits. Bigger models and longer outputs are slower, so the same levers help both.

The production terms

TermPlain meaningThe question it answers
LLM gatewayOne doorway that all of a company's model calls pass through. It can route to different models, enforce budgets, and log everything.Who is calling which model, and what is it costing us?
Model routingSending easy requests to a cheap model and hard ones to a strong model.Are we overpaying for simple work?
Prompt cachingReusing a long, unchanging part of the prompt at a much lower price on repeat calls.Why pay full price for the same instructions every time?
EvalA repeatable test: a set of inputs, the behavior you expect, and a way to score the output.Did my change make it better or worse?
ObservabilityLogs and traces showing each step an agent took: prompts, tool calls, tokens, timing.What did it do, and where did it go wrong?
GuardrailsChecks on what goes in and what comes out, plus limits on what an agent may do.What stops it from doing something harmful?
RBACRole-based access control. An agent acting for a user should reach only what that user is allowed to reach.Can the intern's agent read the payroll table?
Human in the loopRequired approval before a risky or irreversible action.Which actions need a person to say yes?

You have already met small versions of three of these: token counts in Task 2 (observability), the permission prompt in Task 4 (human in the loop), and the "never read API keys" rule in Task 5 (a guardrail).

Evals in one example

Say you built the email extractor from Task 3 and want to change its prompt. How do you know the change is safe? You keep twenty real emails with the correct answers written down. After every change you run all twenty and count how many come out right. That set of twenty is an eval.

For agents the same idea is applied to the whole run: did it reach the goal, did it call the right tools, did it stay inside its limits. Without evals, every improvement is a guess.

Prompt techniques you should recognize

Production prompt engineering is a set of named techniques. These are the widely used ones from Anthropic's own prompting guidance. Any serious session on the subject will overlap with them.

Be clear and directSay what you want, for whom, and what good looks like. Write it like a brief for a capable new colleague.
Give contextExplain the purpose. A model that knows why can make sensible choices you did not spell out.
Show examplesTwo or three samples of the output you want beat a paragraph describing it.
Structure with tagsWrap documents, instructions and examples in labeled sections so nothing gets mixed up.
Assign a roleA system prompt that sets the role and the rules for the whole conversation.
Let it thinkFor hard problems, ask for reasoning before the answer, or turn on extended thinking.
Specify the formatName the shape you need. For code that reads the result, use a JSON schema as in Task 3.
Chain promptsSplit a big job into steps, each with its own focused prompt, and pass results along.

Thinking about a certification?

If a credential is part of your plan, the AI Certifications guide on this site compares the options and what each one costs.

🧠 Readiness quiz

10 questions across all seven modules. Nothing is recorded. It is only for you.

1. What turns a chatbot into an agent?
2. When Claude "uses a tool" through the API, who actually runs the tool?
3. You have a Claude Pro subscription. What does it NOT include?
4. What is MCP?
5. What is CLAUDE.md for?
6. What does plan mode do in Claude Code?
7. Which is the safest place for your API key?
8. Your bill depends mostly on what?
9. What is an eval?
10. Why does structured output matter in an agent pipeline?

You are done

Go back to the readiness checklist and tick off what you have finished. If you want to keep going, the deepest material on this site is Level 10: The Agent Loop From Scratch.