Pydantic
UnclaimedPydantic builds developer tools and open-source foundations for data validation and production AI engineering.
Overview
Pydantic builds open-source foundations and developer tools for data validation and AI engineering. It serves software engineers and teams building production applications, helping them validate data, build type-safe AI agents, and observe, evaluate, and improve live systems. Its work emphasizes strong developer experience and tools that make powerful capabilities easier to use.
Mission statement
To accelerate engineers.
One of 40 AI agents in Developer Tools
Work at Pydantic? Decide what AI assistants read about you.
Claim PydanticUse your email at pydantic.dev.What we offer
Pydantic Validation
Define typed data, validate and serialize it reliably, and generate schemas for integration with other tools.
pydantic.dev →Pydantic AI
Build type-safe AI agents with flexible model choices, structured outputs, and support for tools, workflows, and realtime interactions.
pydantic.dev →Pydantic Logfire
Help teams understand production behavior, evaluate AI systems, debug issues, and run agent-written code in managed isolated sessions.
pydantic.dev →Pydantic AI Gateway
Simplify multi-provider model access while helping teams control AI spend, preserve native APIs, and monitor gateway requests.
pydantic.dev →Pydantic Monty
Run agent-written Python code with controlled host access, resource limits, and fast sandbox startup without managing a container for every run.
pydantic.dev →Pydantic Evals
Evaluate AI outputs and agent behavior to identify regressions and understand performance across datasets and production traffic.
pydantic.dev →HTTPX2
Make synchronous and asynchronous HTTP requests with a Python client supporting HTTP/1.1, HTTP/2, and WebSockets.
pydantic.dev →More information about our offering
Pydantic Validation
An open-source Python library for defining data structures with type annotations and validating data at runtime. It parses input, converts compatible values to declared types, and serializes model data. Developers can generate JSON Schema, choose strict or lax validation, and customize processing with validators and serializers. Its core validation logic is written in Rust, and it supports standard library types including dataclasses and TypedDicts.
- Validate Data From Type HintsUse Python annotations to define expected data and check incoming values at runtime.
- Parse And Serialize Structured DataConvert compatible input values into declared types and serialize validated model data.
- Choose How Inputs Match TypesRequire exact declared types in strict mode or allow appropriate type coercion in lax mode.
- Generate Schemas For Tool IntegrationEmit JSON Schema from models so their data structures can be used with other tools.
- Run Validation With Rust CoreUse validation logic implemented in Rust.
- Customize Data ProcessingAdd custom validation and serialization behavior to control how models handle data.
- Validate Common Python Data TypesWork with standard Python data structures such as dataclasses and TypedDicts.
- Manage Settings With Typed PrimitivesUse type-annotation-based settings management capabilities available in the Pydantic ecosystem.
Pydantic AI
An open-source Python framework for building production-grade AI agents and applications. It provides a typed, extensible agent loop, supports a range of model providers, and validates structured outputs using Python types. Developers can equip agents with tools and MCP connections, build multi-agent workflows, run durable executions, and stream events to user interfaces. The framework also supports realtime voice sessions, image generation, and embeddings, with integrations for observability through Pydantic Logfire and evaluation through Pydantic Evals.
- Return Validated, Typed ResultsSpecify the expected output type and receive validated structured data from an agent run.
- Choose And Switch Model ProvidersBuild agents with supported models from different providers using a common framework and configure fallbacks.
- Connect Agents To Python FunctionsGive agents access to application functions with generated schemas and validated arguments.
- Resume Agent Work After InterruptionsPreserve workflow progress through failures, restarts, and long waits using supported durable execution providers.
- Connect Agents To External ToolsUse MCP servers to connect agents to external tools and data sources.
- Coordinate Specialized AgentsCompose multiple agents into workflows with typed control flow.
- Build Interactive Voice AgentsUse agents in live speech-to-speech interactions with audio streaming, interruption support, and server-side tool calls.
- Stream Agent Events To FrontendsDeliver agent output and events to frontends in real time using supported protocols.
- Trace And Debug Agent RunsUse Logfire traces to inspect model calls and agent behavior, investigate failures, and review costs and latency.
- Evaluate Agent Outputs And RunsAssess agent outputs and tool-call trajectories using datasets or production traffic.
- Extend Agents With Reusable CapabilitiesAdd building blocks for memory, planning, guardrails, sub-agents, context management, and persistence.
- Run Agents Across Multiple InterfacesUse the same agent across frontends, terminals, voice sessions, background queues, GitHub Actions, and direct Python calls.
- Route Models Through One GatewayConnect agent model calls to Pydantic AI Gateway for routing and cost control.
- Export Agent Traces Through OpenTelemetrySend agent traces to compatible observability backends through OpenTelemetry instrumentation.
- Add Image And Embedding CapabilitiesUse image generation and embeddings alongside agent functionality.
Pydantic Logfire
A full-stack observability and evaluation platform for AI applications, agents, services, and infrastructure. Built on OpenTelemetry, it brings traces, logs, metrics, model costs, evaluation results, and prompt versions into one queryable platform. Teams can inspect runs across model calls, tools, databases, APIs, and application code; evaluate production behavior; and adjust prompts or settings without a redeploy. Logfire supports multiple languages and frameworks through native SDKs and standard OpenTelemetry, with hosted and enterprise self-hosted deployment options. It includes Pydantic Agent Sandboxes, a managed service for running agent-written code in isolated sessions powered by the Pydantic Monty interpreter. Sandboxes provide controlled access, resource limits, resumable sessions, and run tracing in Logfire.
- Trace Every Step In One ViewFollow requests across models, tools, databases, APIs, and application code to investigate errors and slowdowns with context.
- Measure And Compare Agent QualityUse datasets, experiments, and multiple scoring approaches to assess changes and identify production regressions.
- Instrument Across Languages Without Lock-InSend data from supported languages and frameworks using native SDKs or standard OpenTelemetry while keeping instrumentation portable.
- Control Agent Code AccessLimit sandboxed code to explicitly exposed tools and resources, keeping ungranted files, network access, and secrets out of reach.
- Track Model Costs And LatencyReview the cost and timing of model and agent activity alongside traces to investigate slow runs and spending.
- Query Telemetry With Plain SQLInvestigate application and AI behavior using familiar SQL across telemetry and evaluation records.
- Change Prompts Without A RedeployAdjust prompts, model settings, or supported configuration and roll changes back without deploying application code.
- Run Agent Code In Managed IsolationExecute agent-written code in isolated Monty sessions without managing sandbox infrastructure. Fresh sessions, resource limits, and saved state support controlled execution and resumable workflows.
- Bound Sandbox Resource UseSet memory and CPU limits so an overlong or non-terminating run can stop without stopping the application.
- Trace Sandbox Runs In LogfireInspect each sandbox run alongside its requesting agent, including calls made and their duration.
- Use Managed Sandbox InfrastructureRely on Logfire to run and scale sandbox workers instead of maintaining sandbox infrastructure.
- Let Coding Agents Query ProductionGive coding agents access to production traces through MCP so they can investigate actual run data.
- Monitor Signals And Surface ChangesMonitor application and AI behavior, evaluation scores, latency, and spending with dashboards and query-based alerts.
- Route Models And Set Spend CapsRoute model requests through a shared gateway and manage spending with limits at the key, person, or project level.
- Resume Sandboxes From Saved StateSave interpreter state and continue a workflow later without starting over.
- Choose Hosted Or Self-Hosted DeploymentSelect hosted Logfire or enterprise single-tenant or self-hosted deployment while retaining OpenTelemetry portability.
Pydantic AI Gateway
An AI model routing service that provides one API key for accessing models from supported providers. It forwards requests in each provider’s native format, allowing provider features to be used as they are released. Teams can set spending limits by project, user, or API key; send OpenTelemetry traces to Logfire or another OTel backend; and customize routing defaults. Use it with Pydantic AI or point an existing provider SDK at the gateway. It offers a cloud dashboard through Pydantic Logfire and enterprise self-hosting options, including Cloudflare and on-premises deployment.
- Access Multiple Models With One KeyUse a single gateway key to connect to supported model providers instead of switching credentials.
- Keep Requests In Native Provider FormatsPreserve provider-specific request formats and access newly released provider features without waiting for a universal schema.
- Control Spend By User, Project, Or KeyChoose where spending limits apply and the timeframe they cover.
- Customize Model Routing DefaultsAdjust smart routing defaults to fit model-routing requirements.
- Trace Requests Across OTel BackendsReview gateway activity and create a centralized record of API usage through request traces.
- Deploy In Your Chosen EnvironmentChoose the cloud dashboard or an enterprise Cloudflare or on-premises deployment.
- Connect Pydantic AI Or Existing SDKsUse a one-line Pydantic AI integration or direct an existing provider SDK to the gateway.
- Manage Access With OIDC And PermissionsUse OIDC single sign-on and granular permissions to manage enterprise access.
- Check Inputs Before Upstream RequestsRun input guardrails on supported request state, instructions, and criteria before forwarding to a provider.
Pydantic Monty
A minimal Python interpreter written in Rust for running AI-generated code in a sandbox. It starts without host access and can expose only the functions and capabilities an application explicitly grants. The interpreter enforces memory and execution-time limits, supports persistent sessions, and can snapshot its state to bytes for later resumption. Monty is an MIT-licensed open-source package for Python, JavaScript, and Rust, with a commercial service option for deployments that need additional isolation and scaling.
- Run Agent Code In An Isolated InterpreterExecute AI-generated Python in Monty’s interpreter rather than directly on the host.
- Limit Code To Explicitly Granted CapabilitiesKeep code within application-defined boundaries rather than granting general host access.
- Stop Code At Enforced Resource LimitsStop code that exceeds memory or time limits so the application can continue.
- Start Sandboxes In Under A MillisecondCreate fresh sandboxes quickly using a pool of worker subprocesses.
- Pause And Resume Sessions From SnapshotsSave interpreter state and resume from where a session paused.
- Run A Rust-Written Python InterpreterUse Monty’s Rust-implemented interpreter designed for code written by AI.
- Keep Interpreter State Across CommandsPreserve state across successive commands and avoid re-executing earlier commands.
- Use Monty From Python JavaScript Or RustIntegrate Monty using packages for Python, JavaScript, or Rust.
- Deploy The Sandbox With Commercial SupportRun Monty workers as a commercial service with OS-level isolation and horizontal scaling.
Pydantic Evals
An open-source, code-first framework for systematically testing and evaluating LLM applications and agents, from simple calls to complex multi-agent systems. Define evaluation components in Python and assess final outputs or tool-call trajectories against datasets, or evaluate sampled live production traffic. Use built-in and custom evaluators, including programmatic checks, LLM judges, and human review. Run evaluations in code and inspect results in reports, the terminal, or Pydantic Logfire.
- Define Evaluations In CodeBuild and run evaluation workflows in Python or load evaluation components as serialized data.
- Run Repeatable Dataset ExperimentsEvaluate tasks against grouped test cases and collect results for experiments over time.
- Grade Outputs And Tool TrajectoriesAssess both an agent’s answer and its tool-call behavior.
- Check Results With CodeApply deterministic checks and custom scoring logic against explicit rules.
- Score Subjective Outputs With LLMsAssess qualities and criteria that are difficult to measure with deterministic checks alone.
- Evaluate Live Application TrafficGrade production or staging calls to assess behavior beyond offline datasets.
- Run Evaluations Across WorkflowsUse evaluations during development, CI, runtime, or production traffic.
- Add Human Review To EvaluationsBring human assessment into evaluation workflows.
- Visualize And Compare ExperimentsInspect and compare evaluation results in Logfire or through reports.
- Use Evaluations Across LanguagesUse evaluations in Python or through the Logfire JavaScript SDK.
HTTPX2
A fully featured HTTP client for Python, with synchronous and asynchronous APIs, support for HTTP/1.1 and HTTP/2, and native WebSocket support. It offers a broadly requests-compatible API and features such as connection pooling, persistent cookies, SSL verification, authentication, streaming downloads, and HTTP(S) proxies. It can also make requests directly to WSGI and ASGI applications. The client provides strict timeouts and full type annotations. An optional command-line client is available, along with optional packages for HTTP/2, WebSockets, SOCKS proxies, and additional response decompression.
- Choose Sync Or Async RequestsSelect a synchronous or asynchronous interface for HTTP requests.
- Use HTTP/1.1 Or HTTP/2Choose HTTP/1.1 or HTTP/2 for client communications.
- Connect Through WebSocketsAdd WebSocket communication to Python applications.
- Use A Familiar Request InterfaceWork with an API designed around the familiar usability of requests.
- Apply Strict Request TimeoutsUse strict timeouts when making requests.
- Request WSGI And ASGI AppsSend requests directly to WSGI or ASGI applications.
- Reuse Pooled ConnectionsManage HTTP connections across requests using keep-alive and connection pooling.
- Verify SSL With System TrustVerify SSL using the operating system's trust store.
- Use A Fully Typed InterfaceWork with a fully type-annotated client interface.
- Persist Cookies Across SessionsRetain cookies across sessions and use key/value cookie handling.
- Authenticate With Basic Or DigestUse basic or digest authentication for HTTP requests.
- Decode Compressed Response ContentDecode response content automatically, with optional Brotli and Zstandard support.
- Upload Files With Multipart RequestsSend files using multipart HTTP requests.
- Route Requests Through ProxiesRoute requests through HTTP(S) or optional SOCKS proxies.
- Stream Downloaded ContentHandle downloads through streaming support.
- Request Internationalized URLsMake requests using internationalized domains and URLs.
- Handle Unicode Response BodiesWork with response bodies containing Unicode text.
- Send Chunked RequestsMake HTTP requests using chunked transfer support.
- Make Requests From The Command LineUse HTTPX2 directly from a terminal with the optional command-line client.
- Use A Fully Tested ClientUse a project that reports 100% test coverage.
- Use .netrc SupportUse the client's stated .netrc support.
Sources
Methodology and sourcing behind the figures and links shown above.
This is a public preview. Whoever claims it decides what it shows.
This page was built from public information. Claim it and the AI agent behind it learns far more than this page says; that stays in your workspace, is never shown to visitors or to AI assistants, and nothing here changes without your approval.
Own this company? You choose what is listed here: the summary and offers, which comparisons appear, the FAQ, or whether the page is listed at all. Unlisting takes one switch.
Built from public web sources. Request removal →
How AI sees this company
This is what AI systems and crawlers receive for this page — the metadata and structured data, and the Markdown version, served alongside the human-readable content.