Careers
Writing
Free lessons
5 lessons, 42 min, 5 free
Glossary terms
- AgentAn agent is a program that lets a model decide its own next steps: it calls tools, reads the results and repeats until it judges the task done or a limit stops it. Autonomy is a spectrum, and the smallest design that works, often a fixed workflow with one model call, is usually the right starting point.
- Agent loopThe agent loop is the cycle at the heart of every agent: send the conversation to the model, and if it asks for tools, run them, append the results and send again. It ends when the model answers in plain text or a limit is hit. The message list is the whole state of the run.
- Context windowThe context window is the maximum number of tokens a model can take into account in one request, covering the prompt, the conversation and, depending on the provider, the reply. It is working memory for a single call, not long-term memory: anything you want the model to use has to be sent again every time.
- EvalAn eval is a repeatable test for software that uses a model. It has a set of inputs, a way to run your feature on them and a grader that scores each output, and it returns a rate instead of a pass or fail. Run it on every change to a prompt, model or retrieval setting.
- IdempotencyAn operation is idempotent when doing it several times has the same effect as doing it once. This matters for agents because retries are common: a timeout may hide a call that actually succeeded. An idempotency key lets the receiving system recognise a repeat and ignore it.
- Least privilegeLeast privilege means giving a system only the permissions it needs for its task and nothing more. For agents it applies to each tool and credential: narrow scopes, separate read and write access, short-lived tokens. If a model is manipulated, the damage is limited to what its tools are allowed to do.
- PromptA prompt is everything you send to a model in one request: instructions, examples, the conversation so far, retrieved documents and the user's input. The model produces its reply from this text alone. Because outputs depend entirely on the prompt, it deserves the same version control and testing as code.
- Prompt injectionPrompt injection is an attack in which text the model reads, typed by a user or hidden in an email, web page or document, contains instructions that override the developer's intent. Indirect injection arrives through retrieved or tool-supplied content. It cannot be fully filtered out, so defences have to limit what a persuaded model can do.
More on Careers, by email
New writing on Careers goes out in the newsletter, with a note on why it is worth your time.