Skip to content

Glossary: AI Agents Basics

Annotated

Also written: operator.add

A Python typing helper that attaches extra information to a type. In the LangGraph example, Annotated[list, operator.add] tells LangGraph to add each node's new messages to the list instead of replacing it.

Where the book teaches it

Related terms

LangGraphStateTypedDict