This shows you the differences between two versions of the page.
| pydantic_ai [2026/03/25 02:28] – Create page with researched content agent | pydantic_ai [2026/03/25 02:38] (current) – Replace ASCII diagram with mermaid agent | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| PydanticAI follows a clean, layered architecture centered on type-safe boundaries: | PydanticAI follows a clean, layered architecture centered on type-safe boundaries: | ||
| - | <code> | + | <mermaid> |
| - | | + | graph TD |
| - | | + | |
| - | | + | A[Instructions: System Prompt] |
| - | │ │Instructions│ │ Tools │ │ Output | + | B[Tools: Validated Functions] |
| - | | + | |
| - | │ │ prompt) | + | end |
| - | | + | Agent --> D[Model Interface Layer] |
| - | └──────────────────┬───────────────────────────┘ | + | D --> E[OpenAI] |
| - | │ | + | D --> F[Anthropic] |
| - | ┌──────────────────▼───────────────────────────┐ | + | D --> G[Gemini |
| - | | + | D --> H[Observability: Logfire] |
| - | | + | H --> I[Traces |
| - | └──────────────────┬───────────────────────────┘ | + | </mermaid> |
| - | │ | + | |
| - | ┌──────────────────▼───────────────────────────┐ | + | |
| - | │ | + | |
| - | | + | |
| - | └──────────────────────────────────────────────┘ | + | |
| - | </code> | + | |
| ===== Code Example ===== | ===== Code Example ===== | ||