Skip to main content
Agents and teams accept strings, dictionaries, messages, and Pydantic models. Start with strings. Add schemas when you need validation.

Choose a Format

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

Generate the final response with another model or parse it into a schema.