Python-Agenten-Framework von den Pydantic-Machern — FastAPI-ähnliche DX, vollständige Typ-Sicherheit, provider-agnostisch. OSS (MIT). Logfire für Observability: Free / Team 49 USD / Growth 249 USD/Monat.
PydanticAI ist das Python-Agenten-Framework von den Machern von Pydantic — dem Datenvalidierungs-Standard den Fast-API populär gemacht hat. Das Versprechen: FastAPI-Erfahrung für AI-Agenten. Wer Python-Typ-Annotationen kennt und Pydantic verwendet, ist nach einer Stunde produktiv. Aktuelle Version: 1.x (v1.105.0, Stand 06/2026), OSS unter MIT-Lizenz. Die API hat sich seit v0.x stabilisiert.
PydanticAI Framework — vollständig kostenlos und Open Source (MIT-Lizenz, GitHub).
Pydantic Logfire (Observability, optional):
Für Studis: PydanticAI Framework + Logfire Personal reicht für alle Lernprojekte kostenfrei.
pip install pydantic-ai (kein Extra-Paket nötig).Agent(model, result_type=MeinPydanticModell) — fertig.@agent.tool-Decorator und Type-Hints.result = agent.run_sync("Meine Anfrage") → typsichere Ausgabe.model durch anthropic:claude-3-5-sonnet ersetzen — alles andere bleibt.PydanticAI läuft lokal — keine Daten gehen an Pydantic. Alle LLM-Calls gehen direkt zum gewählten Provider (OpenAI, Anthropic, etc.) — deren Datenschutzbedingungen gelten. Logfire ist ein Cloud-Service von Pydantic mit Self-Hosted-Option (Enterprise). Für DSGVO-sensible Anwendungen: lokale Modelle über Ollama oder Self-Hosted Logfire einsetzen.