The method that makes an object callable like a function: agent(prompt).
BAA 101 · 168 terms
The glossary
Every notion met in the journeys, in alphabetical order, with a link to the BAA 101 chapter that explains it.
_
- __call__
- __file__
The path of the Python file being run.
- __getattr__
At module level, the function called when a missing attribute is read; allows values computed on demand.
- __name__
Equals '__main__' when the file is launched directly, otherwise the module's name.
@
- @app.entrypoint
The decorator that makes a function the request handler of the AgentCore Runtime.
- @contextmanager
The decorator that makes a context manager from a function with yield.
A
- Action hallucination
The agent claims to have acted without doing so, for example by giving an invented ticket number. The answer's text proves nothing.
- ADR
Architecture Decision Record: a page that records a technical decision, the option set aside, and the numeric measurement that would change it.
- Agent
A program that uses a language model to decide what to do (search, call a tool, answer, refuse), in a loop, with stopping rules.
- Agent loop
The cycle message → model → tool call → result → model, repeated until an answer or a planned exit.
- agent.messages
The conversation history a Strands agent reads again on every call.
- agent.state
A Strands agent's key-value storage, invisible to the model, readable by its tools.
- argparse
The Python module that turns command-line arguments into Python objects.
- ARN
Amazon Resource Name: the unique identifier of an AWS resource, shaped arn:partition:service:region:account:resource.
- as_completed
Walks through futures in the order in which they finish.
- ast
The Python module that turns source code into a syntax tree you can analyse without running the code.
- async
The keyword that declares a coroutine: a function that can be suspended and resumed (await), to handle several requests without blocking the program.
- asyncio.gather
Starts several coroutines at the same time and returns their results in the order they were given.
- asyncio.run
Starts and runs an asynchronous function (coroutine) from synchronous code.
- AsyncMock
A fake for an async function, in tests: it returns a planned answer and counts its calls.
SeeEvaluate without lying to yourselfMy Python for AI 101 · Chapter 12
- ATS
Applicant Tracking System: a recruiter's software for sorting applications. "ATS-friendly" describes an intent of readability, not certified compatibility.
B
- Back-off
A wait that grows longer with each new attempt after a failure.
- Backtest
Testing a method on the past: you act as if you didn't know how recent cases turned out, you predict, then you compare with what really happened.
SeeEvaluate without lying to yourselfHacktoberfest 2026 · Week 2
- Base rate
The “normal” proportion in the data. A model that always repeats the most frequent answer looks good without understanding anything.
SeeEvaluate without lying to yourselfHacktoberfest 2026 · Week 2
- base64
A way to write bytes as plain text so they can travel; the content does not change.
- boto3
The AWS SDK for Python. Two interfaces: client (the API's raw format) or resource (objects with Python types).
- Bounded tool
A tool that validates its arguments before acting, refuses by naming the valid values, and stays read-only by default.
- Browser storage
sessionStorage keeps data for the life of the tab; localStorage keeps it between visits. Both stay in that browser, on that device.
- Budget
The maximum number of calls an agent loop may make, checked before each call, never after.
C
- Calibration
An 80% score is well calibrated if, over many cases scored 80%, about 8 in 10 happen. A single case can't prove it.
SeeEvaluate without lying to yourselfHacktoberfest 2026 · Week 2
- Chunk (passage)
A piece of a document that retrieval can return. A passage that's too short can lose the sentence that answers.
- CI/CD
The checks (CI) and deployments (CD) run automatically on each push. A green CI does not prove a deployed service is healthy.
- Citation
The ID of the document that supports an answer. A correct citation doesn't prove the sentence comes from the document.
SeeThe model's output is untrusted dataEvaluate without lying to yourself
- ClientError
The exception boto3 raises for any AWS error; the reason is in exc.response['Error']['Code'].
- Closure
An inner function that keeps access to the variables of the function that created it.
- Code Interpreter
A service that runs generated code in an isolated environment, to get an exact calculation rather than the model's estimate.
- Cold start
The slowness of the first call to a service that just started. You measure it: it's a number, not a failure verdict.
- Comprehension
One line that builds a list, a set or a dict from another collection, with an optional filter.
- ConditionExpression
A condition DynamoDB checks at the very moment of the write, atomically.
- Consent
The person's explicit agreement before their data goes to a service. Without it, the request is rejected before any call.
- Constrained reference
The model picks the ID of an excerpt from a list imposed by the schema, instead of copying a quote; code then puts back the original passage.
SeeThe model's output is untrusted dataWhat must always happen is enforced in codeDRILLS.ai · Chapter 06
- Context manager
An object used with with, which runs code on entering and leaving a block; the resource is closed even if an error occurs.
- ContextVar
A variable whose value depends on the current execution context.
- Corpus
The set of documents the agent is allowed to rely on.
- Corrective retry
A single second attempt where the model gets back the error from its first one. Beyond that, a flagged refusal.
SeeThe model's output is untrusted dataHacktoberfest 2026 · Week 2DRILLS.ai · Chapter 06
- CORS
The browser rule that says which origins may call an API. It limits uses in the browser; it is not authentication.
- Coverage score
A percentage computed in code from the skills asked for and the evidence found. It measures documented coverage, never a chance of being hired.
SeeEvaluate without lying to yourselfWhat must always happen is enforced in codeDRILLS.ai · Chapter 07
- create_model
The Pydantic function that builds a model class at runtime, for example to allow only the IDs of one request.
SeeThe model's output is untrusted dataWhat must always happen is enforced in codeMy Python for AI 101 · Chapter 03
D
- Data leakage
When the model sees by mistake a piece of information it wouldn't have had at prediction time (for example the payment date): the score looks excellent, but it's false.
SeeEvaluate without lying to yourselfHacktoberfest 2026 · Week 2
- Dataclass
A class declared by its typed fields; with frozen=True, the object can no longer be changed.
SeeThe model's output is untrusted dataMy Python for AI 101 · Chapter 01
- Decimal
The Python type that computes in exact decimal, without the rounding errors of float. DynamoDB returns them, and JSON cannot write them as they are.
- Decision threshold
The score from which you say “yes”. You choose it on a separate slice of data, never on the final test data.
SeeEvaluate without lying to yourselfHacktoberfest 2026 · Week 2
- Decorator
A function that receives another one and returns an enriched version of it, written @name above the def.
- deepcopy
A full copy of an object and everything it contains, independent of the original.
- Dependency injection
Passing a function the object it needs (model, network) instead of creating it inside, so it can be swapped for a fake.
SeeEvaluate without lying to yourselfMy Python for AI 101 · Chapter 01
- Detached HEAD
The Git state where you are on a commit, not on a branch. A git pull fails there, and work done there must be attached to a branch.
- Dictionary (dict)
A collection of values stored under keys; the shape of the trace, the receipts and the JSON answers.
- Diff
The exact list of lines added and removed in a file. It's what counts, not what the assistant announces.
- Docstring
The text between triple quotes under a def; an agent framework or an MCP server turns it into the tool description the model reads.
SeeThe tool as the model sees itMy Python for AI 101 · Chapter 01DRILLS.ai · Chapter 09
E
- Eligibility
An administrative condition of a posting (right to work, internship agreement, graduation date), separate from skills: a good score does not settle it.
- EMF
Embedded Metric Format: a JSON log from which CloudWatch extracts metrics automatically.
- Exception
An error signal that interrupts the normal flow; you raise it, catch it (except) and turn it into a refusal.
F
- f-string
A string prefixed with f where {value} is replaced; an optional format follows the colon (!r, :.2f, :08d).
- Fail closed
When in doubt, the guard blocks rather than lets through. A guard that checks nothing when the model doesn't call the tool “fails open”.
SeeRead the tool call, not the answerWhat must always happen is enforced in codeHacktoberfest 2026 · Week 2
- Failure bucket
The category a failure goes into before you fix it: retrieval, tool choice, instruction not followed, format.
- Fake model
A deterministic model with scripted answers. It tests the circuit, not the judgment: a green test on it proves the plumbing.
- Fallback
A back-up code path run when the main call fails, to return a partial result rather than an error.
- Fast-forward
An update where the branch simply moves forward to the target commit, with no merge. --ff-only refuses if the histories diverge.
- Fixture
A function pytest runs before a test to prepare the ground (a throwaway folder, the network cut off).
SeeEvaluate without lying to yourselfMy Python for AI 101 · Chapter 12DRILLS.ai · Chapter 04
- Fresh-clone test
Cloning your own repo into an empty folder and following only the README, like a stranger, to see if it works.
SeeVerify the effect, not the claimHacktoberfest 2026 · Week 2
- functools.wraps
Copies the original function's name and docstring onto its wrapper.
- Future
The promise of the result of a task started in a thread.
G
- Golden set
A small set of reference questions, each labeled with the expected behavior: answer, cite, or refuse.
- Grounding
The fact that an answer is actually supported by the document it cites.
SeeThe right page must arriveEvaluate without lying to yourselfDRILLS.ai · Chapter 06
- Guardrail
A filter applied to the model's inputs and outputs: harmful content, personal data, denied topics. It's tested like code, false positives included.
H
- Harness
Everything around the model: the loop that runs it, the instructions, the tools, the traces, the evaluations. A managed harness runs the loop for you, with less control.
- Hash (fingerprint)
A short, fixed summary of a text (SHA-256): the same text always gives the same fingerprint, without revealing it.
- Hit rate @k
The share of questions whose expected document is among the top k search results.
- Hook
Code triggered at a precise moment in the agent's life, before or after a call, to enforce a rule the prompt doesn't guarantee.
- Human-in-the-loop
A step where a person reviews, corrects or confirms before the action goes out. In DRILLS.ai, the candidate reviews their documents and applies themselves.
- Hybrid routing
Choosing the method case by case: for example a model for a new client, and the client's history otherwise.
SeeWhat must always happen is enforced in codeHacktoberfest 2026 · Week 2
I
- Idempotence
Running an action again doesn't change the result: a return already started isn't started twice, an existing resource is reused.
SeeWhat must always happen is enforced in codeDRILLS.ai · Chapter 09
- IDF
Inverse Document Frequency: a word found in few passages weighs more in the retrieval score.
SeeThe right page must arriveMy Python for AI 101 · Chapter 01
- In-browser inference (WebGPU)
The page downloads the model once, then the computer's graphics card runs it directly in the browser: nothing to install, nothing is sent.
- inspect
The introspection module: it gets, for example, the source code of a function.
- ipaddress
The Python module that reads an IP address and tells whether it is public, private or local.
SeeThe tool as the model sees itMy Python for AI 101 · Chapter 01
K
- Knowledge base
A set of documents, split and indexed, that the agent queries before answering. An unsynced base returns nothing, with no error.
L
- lambda
An anonymous one-expression function: lambda o: o['order_date'].
- lambda_handler
The entry point of an AWS Lambda function: it receives (event, context) and returns a dict.
- Lazy singleton
An object created only once, the first time it is needed, then reused.
- Literal
A Python type that only accepts exact values: Literal["fr", "en"], or Literal[True] for a mandatory agreement.
SeeThe model's output is untrusted dataMy Python for AI 101 · Chapter 03
- LLM
Large Language Model: the language model that generates text and chooses which tools to call.
- LLM-as-judge
A model that scores another model's answers against a criterion. It reads the text, but sees neither the tool calls nor what was written to the database.
- load_dotenv
Copies the variables of a .env file into os.environ.
- Long-term memory
What survives from one session to the next, filed per user: facts, preferences, summaries. Without an owner or a limit, it leaks and contaminates tests.
M
- MCP
Model Context Protocol: a standard for exposing tools and data sources to any agent. An MCP tool is discovered by its name, description and schema.
- Middleware
A function that wraps every request of a web server, to apply the same rule to every response.
SeeWhat must always happen is enforced in codeMy Python for AI 101 · Chapter 08
- monkeypatch
The pytest tool that temporarily replaces a function or an environment variable during a test.
SeeEvaluate without lying to yourselfMy Python for AI 101 · Chapter 12DRILLS.ai · Chapter 11
O
- Open data
Data published by an institution, that anyone can download and reuse for free, often under an open licence.
- Open-weights licence
Open weights don't mean “free to sell”: a model can be free for a prototype and off-limits in a paid product.
- Optimistic locking
Every write carries the version read just before it; if the version changed in the meantime, the write is refused. Two agents can't silently overwrite each other.
- Optional
The Optional[T] annotation: a value of type T, or None.
- Orchestrator
In a multi-agent system, the agent that never answers itself: it routes the work to specialist agents.
- Over-refusal
Also refusing what the agent could have answered. Safe, but less useful; you measure it as much as errors.
- Overconfidence
A displayed confidence higher than the sources justify, for example 1.0 on a single document.
P
- Paginator
A boto3 object that chains the pages of an API automatically.
- Parser
The code that reads the model's output and rejects it if it doesn't match the schema: format, exact fields, types, bounds.
- pathlib
The Python module that handles file paths as objects (Path, /, glob, read_text).
- Pinned intent
What was asked, written down before the action exists. Every check compares the action to that pin, never to itself.
- Prompt injection
An order hidden in a text (document, page, tool output, product name) that tries to steer the model. You treat it as data, never as an instruction.
- Protocol
In Python, a contract defined by methods: a class meets it as soon as it has those methods, without inheritance.
- Pydantic
A Python library that validates data against typed classes; with extra="forbid", an unexpected field is rejected.
SeeThe model's output is untrusted dataDRILLS.ai · Chapter 06My Python for AI 101 · Chapter 03
R
- RAG
Retrieval-Augmented Generation: search for passages in a base, then answer from them, citing them.
- random.choices
Draws items at random (with replacement) from a sequence; handy for readable demo IDs.
- Rate limit
A maximum number of requests per period, for example 3 per minute. It protects a demo; it is not authentication.
- re.fullmatch
Checks that a whole string matches a regex pattern, and captures its groups along the way.
- Redaction
Replacing a secret (key, token, email) with a label carrying a fingerprint before writing a log, without deleting the field. Same secret, same label.
- Refusal
An explicit "I can't answer": no citation, zero confidence, human review. A state, not a crash.
- Regex (regular expression)
A pattern that describes a shape of text rather than an exact word; used by injection guards, redaction and to read a header.
SeeData is never an orderMy Python for AI 101 · Chapter 01DRILLS.ai · Chapter 05
- Retention policy
What a memory keeps, why, how to correct it, when it expires, and what it refuses to keep. Written before the first record.
- Retrieval
The step that searches the corpus for passages useful to a question, before calling the model. Nothing found: refuse without a call.
- ROC-AUC
A score between 0.5 (chance) and 1 (perfect) that measures whether the model ranks risky cases ahead of the others.
SeeEvaluate without lying to yourselfHacktoberfest 2026 · Week 2
- Rollback
Going back to the last version that worked, described in advance by an action, a number and a unit.
S
- Scheduled job
A program the machine starts on its own at a set time, for example every morning.
SeeWhat must always happen is enforced in codeHacktoberfest 2026 · Week 1
- Schema
The required shape of a piece of data: its fields, their types, their bounds.
SeeThe model's output is untrusted dataHacktoberfest 2026 · WeekendDRILLS.ai · Chapter 06
- Seam
The single point of contact between the agent and any model: one method, and you switch providers without touching the agent.
- Semaphore
A counter that limits how many operations run at the same time. When it is full, the next request is refused or waits.
- SequentialToolExecutor
The Strands executor that runs a turn's tools one after the other.
- Service worker
A script the browser keeps between visits, often for caching. An old worker can serve an old version after a successful deployment.
- Session memory
The history of one conversation, which disappears when it ends.
- SessionRepository
The Strands interface to implement to store sessions wherever you want.
- set
A collection with no duplicates; & gives the shared elements, <= checks that one set is contained in another.
- Silent failure
An error that looks like a normal answer, like "no results" when there are some. The worst kind of error.
- Skill
An instruction sheet the assistant loads only when the task matches. It's judged by the difference it makes, with evidence.
- Slot filling
Filling a tool's parameters during the conversation: keep what's given, ask for one missing field at a time, act as soon as everything is there.
- Smoke test
A quick test run right after a deployment, designed to be able to say "this deployment is bad".
- SSRF
Server-Side Request Forgery: getting a tool that fetches URLs to call an internal or private address on the attacker's behalf.
- Stateless
Said of a function or handler that keeps no state between two calls, so it can be called again with no side effect.
- Streamable HTTP
MCP's HTTP transport: the client sends its requests to a single address, here /mcp/.
- StreamingBody
An AWS response body in the form of a stream, to read with .read().
- Structured output
Asking the model to answer in a fixed format (JSON), so the interface always shows the same thing, in the same place.
SeeThe model's output is untrusted dataHacktoberfest 2026 · WeekendDRILLS.ai · Chapter 06
- subprocess
The Python module that launches another program (git, a CLI) and gets back its exit code and output.
- sys.argv
The list of command-line arguments.
- sys.path
The list of folders where Python looks for the modules to import.
- System prompt
The fixed instructions given to the model before any conversation. A rule there reduces a behavior without eliminating it, and a prompt that's too long is followed less well.
SeeData is never an orderWhat must always happen is enforced in codeHacktoberfest 2026 · Week 1
T
- Tabular foundation model
A model already trained on millions of synthetic tables: you give it a small table of examples and it predicts the next rows, without long training.
- Telemetry
The usage statistics a piece of software sends to its publisher. Some tools send them by default; you can turn them off.
- Temperature
The setting for randomness in generation. At 0, answers and tool calls become more stable, without becoming perfect.
- Test harness
The code that runs a function on cases and checks the result. A good test harness fails on the broken version and passes on the fixed one.
SeeEvaluate without lying to yourselfDRILLS.ai · Chapter 04DRILLS.ai · Chapter 12
- Thread
A parallel thread of execution; join(timeout) lets you wait for an answer for N seconds at most.
- threading.Lock
A lock: only one thread at a time runs the protected block.
- ThreadPoolExecutor
A pool of threads that runs tasks in parallel, suited to waiting on the network.
- timedelta
The duration you get by subtracting two dates; .days gives the days.
- Timeout
A maximum waiting time. Past it, you abandon the call and return a readable refusal, instead of waiting forever.
- Tokenization
Cutting a text into lowercase words (tokens) before comparing them.
SeeThe right page must arriveMy Python for AI 101 · Chapter 05
- Tool annotation
Hints declared with an MCP tool for the client: read-only, non-destructive, idempotent.
- Tool call
The model's request to run a tool with specific arguments. That's what you read in the trace, not the final answer.
SeeThe tool as the model sees itRead the tool call, not the answerHacktoberfest 2026 · Week 1Hacktoberfest 2026 · Week 2
- ToolContext
The object Strands injects into a context=True tool; it gives access to the calling agent.
- Trace
The log of a run: every step (search, model call, tool call, decision) with its arguments and result.
- Transition table
The list of allowed (state, event) pairs and the state each one leads to. Any missing pair is refused, and the state doesn't move.
- Type hint
The annotation of the expected type (str, list[str], str | None); Python does not enforce it, but agent frameworks and MCP read it.
SeeThe tool as the model sees itMy Python for AI 101 · Chapter 11
U
- unittest
The standard library's test framework (TestCase, setUp).
- URL guard
A check that decides, on the string alone and before any request, whether an address is allowed: protocol, public address, permitted domain.
- uuid.uuid4
Generates a random 128-bit identifier, unique in practice; used for session IDs.
W
- Workflow
A sequence of steps decided by code: the model steps in at set points, but does not choose what comes next.
- Worktree
A second working folder attached to the same Git repository. Its uncommitted files do not leave with a push.
Y
- yield
Suspends a function; in a context manager, separates the way in from the way out.
Z
- Zod
A TypeScript library that validates data at runtime, for example a dossier read back in the browser.
SeeThe model's output is untrusted dataDRILLS.ai · Chapter 08