关于
This skill provides a standardized framework for implementing dependency injection in PydanticAI agents, enabling seamless access to external resources like database connections, API clients, and user contexts through RunContext. By leveraging type-safe dataclasses or Pydantic models, it ensures that your AI agents remain modular, testable, and robust. The skill covers the entire lifecycle of dependency management, from initial definition and runtime injection to advanced type-safe tool access and mocking dependencies for unit testing, making it an essential pattern for building production-grade AI services.