Skip to content

Glossary: AI Agents Basics

Dataclass

Also written: dataclasses, @dataclass

A Python class that mainly holds data, created by adding the `@dataclass` decorator from the `dataclasses` module, which generates boilerplate such as the constructor. A `Run` object that holds the state of one agent conversation is a typical example.

Where the book teaches it

Related terms

Stateasdict