pydantic-ai
БесплатноБез исполняемых скриптовНе проверенPydantic AI Python agent framework. Covers typed tools, model providers, evals, MCP, UI adapters, and observability. Use when building Python AI agents with…
от itechmeat★ 24 звезды на GitHubОб этом скилле
Pydantic AI
Python agent framework for building production-grade GenAI applications with the "FastAPI feeling".
Quick Navigation
| Topic | Reference |
|---|---|
| Agents | agents.md |
| Capabilities | agents.md |
| Tools | tools.md |
| Models | models.md |
| Embeddings | embeddings.md |
| Evals | evals.md |
| Integrations | integrations.md |
| Graphs | graphs.md |
| UI Streams | ui.md |
| Workspaces & Sandboxes | workspaces-and-sandboxes.md |
| Realtime (speech-to-speech) | realtime.md |
| MCP Apps | mcp-apps.md |
| Decision Models | decision-models.md |
| Security | security.md |
| Installation | installation.md |
When to Use
- Building AI agents with structured output
- Need type-safe, IDE-friendly agent development
- Require dependency injection for tools
- Multi-model support (OpenAI, Anthropic, Gemini, etc.)
- Production observability with Logfire
- Complex workflows with graphs
Installation
See references/installation.md for full/slim install options and optional dependency groups. Requires Python 3.10+.
Release Highlights (2.49.0 -> 2.59.0)
- Security (upgrade): three advisories landed in this window - the local
web_fetchHTML conversion stall (High, GHSA-4whf-38hw-pxxh, fixed in2.59.0/v1.107.9), MCP server URLs/tokens/custom headers leaking into OpenTelemetry traces and URL-derived credential exposure (Medium, GHSA-xv4x-g8mx-ch56, fixed in2.58.0/v1.107.8), and client-triggered tool execution through the Vercel AI/AG-UI adapters with server-sidemessage_history(Medium, GHSA-5pfm-2g3g-gh85, fixed in2.58.0). Rotate MCP credentials when upgrading from below2.58.0. Details inreferences/security.md. - Workspaces and sandboxes (
2.52.0+):ctx.workspacegivesCoder,ShellandFileSystemone API for files and commands, running locally or in a sandbox with durable execution. New providers:SpritesSandbox(Fly.io Sprite),E2BSandbox,SSHWorkspace,BubblewrapSandbox, andDaytonaSandbox(2.59.0);ModalSandboxBackendreplacesModalSandboxSession.Coderfile tools get a retry budget of 5 and keep scratch files out of the project. Seereferences/workspaces-and-sandboxes.md. - Realtime (
2.49.0-2.59.0): OpenAI GPT-Live viaOpenAILiveModel(2.51.0) with browser WebRTC (2.52.0),ElevenLabsRealtimeModel(2.58.0),azure_voice_live_voice(2.52.0),gemini-3.8-live(2.50.0),RealtimeSession.wait_for_reply()(2.49.0),context_window_used(2.51.0), theasync_tool_call_modeprofile setting (2.52.0), and theAnswersRevised/OutputItemCutlifecycle events (2.59.0). Seereferences/realtime.md. - Provider-neutral errors (
2.59.0):ModelRateLimitError,ModelUnavailableError,ModelServerError,ModelContextWindowExceededError, plusModelHTTPError.for_categoryto map a raw provider error onto them. - MCP Apps (
2.57.0): tool results can carry resources and app surfaces, forwarded to the AG-UI and Vercel AI frontends.MCPToolset.read_resource_contentsandMCPToolset.call_tool_for_appread a resource or call an app-producing tool;ToolKindtyped tool parts (2.58.0) let any module emit a typed tool part. Seereferences/mcp-apps.md. - Decision models (
2.49.0-2.50.0):DecisionModel(the baseTypeSafeModelbuilds on) answers several questions in one call and routes from the answers, with route fields,decision_route_threshold,ModelSelectionContext.promptandRunContext.in_durable_context.TypeSafeModelgained "none of these" semantics and whole-numberChoiceoptions;BoolCriteriatypes boolean answers. Seereferences/decision-models.md. - Providers and models (
2.49.0-2.59.0): Claude Sonnet 5.5 (claude-sonnet-5-5) withAnthropicModeldefaultmax_tokensraised from 4096 to 16384 on Sonnet 4.5+ (and defaulting to the model's maximum output);MetaProviderfor Meta Muse (2.57.0); OpenAIgpt-6-sol/gpt-6-luna/gpt-6-astraon Bedrock Converse withtemperature/top_pdropped for GPT-5.6/GPT-6 there;GitHubCopilotProvidercan send a configurablecopilot-integration-id; shut-down Groq models (playai-tts,playai-tts-arabic,meta-llama/llama-guard-4-12b,meta-llama/llama-4-maverick-17b-128e-instruct) were removed. - Agent control (
2.57.0-2.59.0): `DelegationTasks.st
Установить pydantic-ai в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pydantic-ai?
Pydantic AI Python agent framework. Covers typed tools, model providers, evals, MCP, UI adapters, and observability. Use when building Python AI agents with Pydantic AI, configuring model providers, implementing typed tools/dependencies, running evals, or integrating MCP servers. Keywords: pydantic-ai, agents, evals, MCP, Logfire.
Как установить скилл pydantic-ai?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pydantic-ai запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic