Pydantic AI llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/pydantic-ai/llms-txt)

# Pydantic AI llms.txt

Browse Pydantic AI documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

ai.pydantic.dev/llms.txt

[Raw llms.txt](https://ai.pydantic.dev/llms.txt) [Raw llms-full.txt](https://ai.pydantic.dev/llms-full.txt)

Copy Markdown [](https://ai.pydantic.dev/llms.txt)

llms.txt

Overview

Coding Agent Skills

Pydantic AI Gateway

Getting Help

Installation

Troubleshooting

Core Concepts

Agents

Agent Specs

Capabilities

Dependencies

Direct Model Requests

Hooks

Messages and chat history

Output

Models & Providers

Anthropic

Bedrock

Cerebras

Cohere

Google

Groq

Hugging Face

Mistral

Ollama

OpenAI

OpenRouter

Overview

xAI

Tools & Toolsets

Common Tools

Deferred Tools

Native Tools

Third-Party Tools

Function Tools

Advanced Tool Features

Toolsets

Advanced Features

Image, Audio, Video & Document Input

HTTP Request Retries

Thinking

Pydantic AI Harness

ACP

Code Mode

Compaction

Context

Dynamic Workflow

FileSystem

Guardrails

Managed Prompt

Media

Memory

Overflowing Tool Output

Planning

Pydantic AI Docs

Runtime Authoring

Shell

Step Persistence

Subagents

Guides

Embeddings

Extensibility

Multi-Agent Patterns

Testing

Web Chat UI

MCP

Client

Overview

Server

Pydantic Evals

Overview

Built-in Evaluators

Custom Evaluators

Third-Party Integrations

LLM Judge

Overview

Report Evaluators

Span-Based

Simple Validation

Core Concepts

Quick Start

Concurrency & Performance

Dataset Management

Dataset Serialization

Case Lifecycle Hooks

Logfire Integration

Metrics & Attributes

Multi-Run Evaluation

Retry Strategies

Online Evaluation

Pydantic Graph

Decisions

Getting Started

Joins & Reducers

Parallel Execution

Steps

Overview

Integrations

Command Line Interface (CLI)

Apache Airflow

DBOS

Kitaru

Overview

Prefect

Restate

Temporal

Debugging & Monitoring with Pydantic Logfire

AG-UI

Overview

Vercel AI

Examples

Agent User Interaction (AG-UI)

Bank Support

Chat App with FastAPI

Data Analyst

RAG

SQL Generation

Flight Booking

Pydantic Model

Weather Agent

Setup

Slack Lead Qualifier with Modal

Stream Markdown

Stream Whales

API Reference

pydantic_ai.models.anthropic

pydantic_ai.models

pydantic_ai.models.bedrock

pydantic_ai.models.cerebras

pydantic_ai.models.cohere

pydantic_ai.models.fallback

pydantic_ai.models.function

pydantic_ai.models.google

pydantic_ai.models.groq

pydantic_ai.models.huggingface

pydantic_ai.models.instrumented

pydantic_ai.models.mcp_sampling

pydantic_ai.models.mistral

pydantic_ai.models.ollama

pydantic_ai.models.openai

pydantic_ai.models.openrouter

pydantic_ai.models.test

pydantic_ai.models.wrapper

pydantic_ai.models.xai

pydantic_ai.agent

pydantic_ai.capabilities

pydantic_ai.common_tools

pydantic_ai — Concurrency

pydantic_ai.direct

pydantic_ai.durable_exec

pydantic_ai.embeddings

pydantic_ai.exceptions

pydantic_ai.ext

pydantic_ai.format_prompt

pydantic_ai.function_signature

pydantic_ai.mcp

pydantic_ai.messages

pydantic_ai.native_tools

pydantic_ai.output

pydantic_ai.profiles

pydantic_ai.providers

pydantic_ai.result

pydantic_ai.retries

pydantic_ai.run

pydantic_ai.settings

pydantic_ai.tools

pydantic_ai.toolsets

pydantic_ai.usage

pydantic_evals.dataset

pydantic_evals.evaluators

pydantic_evals.generation

pydantic_evals.lifecycle

pydantic_evals.online

pydantic_evals.online_capability

pydantic_evals.otel

pydantic_evals.reporting

pydantic_graph.basenode

pydantic_graph.decision

pydantic_graph.exceptions

pydantic_graph.graph_builder

pydantic_graph.join

pydantic_graph.node

pydantic_graph.step

pydantic_graph.util

pydantic_ai.ui.ag_ui

pydantic_ai.ui

pydantic_ai.ui.vercel_ai

Project

Upgrade Guide

Contributing

Version Policy

## What is Pydantic AI's llms.txt?

Pydantic AI publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Pydantic AI offers and where to find details.

Pass

Spec

14

Sections

177

Links

17.4 KB

Size

~4.5k

Tokens

Sections: Overview · Core Concepts · Models & Providers · Tools & Toolsets · Advanced Features · Pydantic AI Harness · and 8 more

## Add Pydantic AI Docs to Your AI Assistant

Select your tool to see how to add Pydantic AI's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://ai.pydantic.dev/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Pydantic AI

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 3 notes

## Frequently Asked Questions

Where is Pydantic AI's llms.txt file?

Pydantic AI publishes its llms.txt at https://ai.pydantic.dev/llms.txt. This file provides a structured, markdown-formatted index of Pydantic AI's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Pydantic AI's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Pydantic AI's documentation so it can provide better code suggestions and answers about Pydantic AI.

What does Pydantic AI's llms.txt contain?

Pydantic AI's llms.txt contains 14 sections and 177 documentation links in 17.4 KB (~4.5k tokens). Key sections include Overview, Core Concepts, Models & Providers, Tools & Toolsets, Advanced Features, Pydantic AI Harness.

How many tokens does Pydantic AI's llms.txt use?

The concise llms.txt index is approximately 4.5k tokens (17.4 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Pydantic AI?

GenAI Agent Framework, the Pydantic way. Pydantic AI's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Pydantic AI.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Ragas Evaluation framework for your AI Application](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/ragas) [Juspay Hyperswitch Juspay Hyperswitch is an open-source payments orchestration platform that lets businesses add, control, and optimize multiple payment processors through a single API. Merchants and platforms use Juspay Hyperswitch to improve approval rates, reduce costs, and expand globally. For complete documentation in a single file, see \[Full Documentation\](https://docs.hyperswitch.io/).](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/hyperswitch) [Firecrawl Docs](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/firecrawl) [Better Auth The most comprehensive authentication framework for TypeScript](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/better-auth) [Puck Puck is a modular, open-source visual editor for React.js. You can use Puck to build custom drag-and-drop experiences with your own application and React components. It's great for both internal page building applications or no-code page building products. Because Puck is just a React component, it plays well with all React.js environments, including Next.js. You own your data and there’s no vendor lock-in.](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/puck) [Modal llms.txt Modal is a platform for running Python code in the cloud with minimal](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/modal) [Chroma Docs](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/trychroma) [AutoGPT AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.](https://mdream.dev/llms-txt/pydantic-ai/llms-txt/autogpt)

[View all 99 projects ](https://mdream.dev/llms-txt/pydantic-ai/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/pydantic-ai/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/pydantic-ai/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)