Skip to main content
Agents accept input and generate output in many formats, from simple strings to validated Pydantic models. Start with strings, add structure when you need validation.

Format Types Usage

String I/O

String in, string out:

Structured I/O

Use Pydantic models to validate what goes in and what comes back:

Guides

Structured Input

Validate data passed to agents and teams.

Structured Output

Get validated Pydantic objects instead of text.

Advanced I/O Features

Multimodal I/O

Pass images, audio, video, and files to agents.

Output Model

Use a secondary model for better writing or cost savings.