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.
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.