Skip to main content
PydanticAI

Installation

Install both the Netra SDK and PydanticAI:

Usage

Initialize the Netra SDK to automatically trace all PydanticAI operations:

Defining Agents

Trace PydanticAI agents with custom decorators:

Tools and Functions

Trace agent tools:

Structured Outputs

Trace structured response generation:

Streaming Responses

Trace streaming agent outputs:

Dependency Injection

Trace agents with dependencies:

Next Steps

Last modified on March 17, 2026