pydantic-ai-dependency-injection
CommunityDependency injection for PydanticAI.
Authoranderskev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill demonstrates wiring dependencies into PydanticAI agents using RunContext and a deps_type, enabling clean, testable integrations with external services.
Core Features & Use Cases
- RunContext-based access to dependencies inside tools.
- Type-safe Deps definitions via dataclasses or Pydantic models.
- Clear guidance on testing overrides and dependency lifecycles.
Quick Start
Define a Deps type, register it with Agent(deps_type=...), and provide concrete deps when running the agent.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pydantic-ai-dependency-injection Download link: https://github.com/anderskev/beagle/archive/main.zip#pydantic-ai-dependency-injection Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.