Key words and examples
Every key word in this course in everyday language, and every real-world example with its picture. Use it to look things up or to revise.
🔑 Key words (27)
27 of 27 words
- Agent
- A model that uses tools in a loop until a goal is doneFrom: What Makes Something an Agent
- Agent loop
- Ask the model, run its tool, add the result, repeatFrom: Writing the Loop by Hand
- Context window
- How much text the model can read at onceFrom: Memory: Short-Term and Long-Term
- Description
- Text telling the model what a tool does and when to use itFrom: Tools: Giving the Model Hands
- Error message
- A short text that says what went wrongFrom: Planning and Handling Errors
- Eval
- A test task with a way to check the resultFrom: Testing and Measuring Your Agent
- Eval set
- Your list of test tasks with expected resultsFrom: Project: A Research Assistant Agent
- Framework
- Ready-made code for building agents. This project does not use one.From: Project: A Research Assistant Agent
- Human in the loop
- A person must approve a risky action before it runsFrom: Guardrails and Human Approval
- Input schema
- A small form that says which inputs a tool acceptsFrom: Tools: Giving the Model Hands
- Least privilege
- Giving the agent only the tools it truly needsFrom: Guardrails and Human Approval
- Long-term memory
- Facts saved outside, in a file or a databaseFrom: Memory: Short-Term and Long-Term
- Loop
- Act, look at what happened, decide the next step, and repeatFrom: What Makes Something an Agent
- max_steps
- A limit on how many times the loop may repeatFrom: Writing the Loop by Hand
- messages
- The list that holds the whole conversation so farFrom: Writing the Loop by Hand
- Model
- The part that thinks and decidesFrom: What Makes Something an Agent
- Plan
- A short list of steps written before using toolsFrom: Planning and Handling Errors
- Prompt injection
- Hidden instructions inside text that the agent readsFrom: Guardrails and Human Approval
- save_note
- A tool that writes a short note of what the agent foundFrom: Project: A Research Assistant Agent
- Short-term memory
- The messages list, kept only during one runFrom: Memory: Short-Term and Long-Term
- Steps used
- How many loop steps a task took. Fewer is usually cheaper.From: Testing and Measuring Your Agent
- Stop reason
- Tells your code if the model wants a tool or has finishedFrom: Writing the Loop by Hand
- Success rate
- How many of the test tasks passFrom: Testing and Measuring Your Agent
- System prompt
- The standing instructions you give the modelFrom: Planning and Handling Errors
- Tool
- Something the agent can use, like search or sending an emailFrom: What Makes Something an Agent
- Tool use
- The model asks your code to run a functionFrom: Tools: Giving the Model Hands
- Wrong tool calls
- Times the agent picked the wrong toolFrom: Testing and Measuring Your Agent
🏠 Real-world examples (8)
Lesson 1
A chatbot answers one message. An agent works towards a goal over many steps. It uses tools and looks at each result.
📌 Model + tools + loop = agent.
Lesson 2
A model can only write text. With tool use, the model asks for a function to run, and your code runs it.
📌 The model asks; your code does.
Lesson 3
The agent loop sends the conversation to the model. It runs any tool the model asks for, adds the result, and repeats.
📌 Ask, run, add result, repeat. Always with a step limit.
Lesson 4
Tools fail in real use. Catch the error and send a clear message back to the model, so it can try another way.
📌 Turn failures into messages the model can read and react to.
Lesson 5
Memory: Short-Term and Long-Term
An agent forgets everything between runs. The messages list is its short-term memory. Saved files give it long-term memory.
📌 Messages are the whiteboard; saved storage is the notebook.
Lesson 6
An agent with strong tools can do harm by mistake. Give it only the tools it needs. Let a person approve risky actions.
📌 Fewest tools possible, and a human checks anything risky.
Lesson 7
Testing and Measuring Your Agent
Trying an agent once does not show that it works. Build a fixed set of test tasks and run them after every change.
📌 If you do not measure it, you do not know it works.
Lesson 8
Project: A Research Assistant Agent
You build a small research agent in Python without a framework. It uses tools to answer a question and saves a short note.
📌 Loop, tools, error messages, approval, memory, evals: build each part by hand.