Skip to content

Glossary: AI Agents Basics

Closure

Also written: closures

A function made inside another function that remembers the outer function's variables. gated() returns a closure that remembers its approver, and orders_of(customer) returns one that remembers the customer.

Where the book teaches it

Related terms

LambdaApprover