Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Give agents more agency

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    fullfran

    pydantic-ai

    fullfran/pydantic-ai
    AI & ML
    2
    2 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Expert guidance on building agents and tools with Pydantic AI.

    SKILL.md

    Pydantic AI Expert Skill

    This skill provides patterns for defining agents, dependencies, and tools using Pydantic AI.

    🤖 Agent Definition

    • State Management: Use StateDeps[T] to pass dependencies (DB clients, settings) to agents.
    • System Prompts: Define complex prompts in src/prompts.py. Use @agent.instructions for dynamic context.
    • Model Choice: Use OpenAIModel as a base for OpenAI-compatible providers (OpenRouter, Ollama) via OpenAIProvider.

    🛠️ Tool Patterns

    • Return Strings: Agents work best with text. Tools should return formatted strings, not Pydantic objects.
    • Resource Management: Initialize and cleanup DB connections properly within the tool or via injected deps.
    • Error Handling: Tools should catch exceptions and return helpful error messages to the agent rather than crashing.

    📺 CLI & Streaming

    • Rich Integration: Use Rich to display real-time streaming of agent output and tool call details.
    • Node Handling: Implement logic for user_prompt, model_request, call_tools, and end nodes in the CLI.
    • Transparency: Always show the user which tool is being called and with what parameters.
    Recommended Servers
    fillin
    fillin
    Browser tool
    Browser tool
    Nimble MCP Server
    Nimble MCP Server
    Repository
    fullfran/hybrid-rag-example
    Files