Skip to main content
One of our favorite features is using Agents to generate structured data (i.e. a pydantic model). Use this feature to extract features, classify data, produce fake data etc. The best part is that they work with function calls, knowledge bases and all other features.

Example

Let’s create an Movie Agent to write a MovieScript for us.
movie_agent.py
Run the script to see the output.
The output is an object of the MovieScript class, here’s how it looks: