A mechanism is the concrete method or process through which a system produces a particular behavior or outcome. In AI, mechanisms span multiple levels: attention mechanisms weight input relevance inside a model, tool-calling mechanisms let agents interact with external services, and retrieval mechanisms ground outputs in factual sources. Understanding which mechanism is responsible for a behavior is essential for debugging, improving, and explaining agent systems.