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.
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:
| Model | Input price / 1M | Output price / 1M | This 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.
| Term | Plain meaning | The question it answers |
|---|---|---|
| LLM gateway | One 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 routing | Sending easy requests to a cheap model and hard ones to a strong model. | Are we overpaying for simple work? |
| Prompt caching | Reusing 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? |
| Eval | A 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? |
| Observability | Logs and traces showing each step an agent took: prompts, tool calls, tokens, timing. | What did it do, and where did it go wrong? |
| Guardrails | Checks on what goes in and what comes out, plus limits on what an agent may do. | What stops it from doing something harmful? |
| RBAC | Role-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 loop | Required 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).
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.
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.
If a credential is part of your plan, the AI Certifications guide on this site compares the options and what each one costs.
10 questions across all seven modules. Nothing is recorded. It is only for you.
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.