Pydantic AI - Agent Dependencies (for API clients, Database connections, etc)

▶ Pydantic AI playlist!    • Pydantic AI - Intro to Agentic AI with Pyd...   ▶ Django & HTMX FULL COURSE: https://www.udemy.com/course/django-h... 🙏 Join our channel to get access to perks:    / @bugbytes3923   ☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲: To support the channel and encourage new videos, please consider buying a coffee here: https://ko-fi.com/bugbytes In this video, we'll look at defining Agent Dependencies in Pydantic AI. These give you a way to consolidate the dependencies required by agent system prompts, tools and output validators, enabling them to be reused across agent workflows and easily mocked/overridden in tests. 📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀: 00:00 Pydantic AI Agent Dependencies 05:57 Accessing Dependencies with RunContext type 09:56 Overriding dependencies 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮: ▶ Udemy: https://www.udemy.com/user/bugbytes/ 📖 Blog: https://bugbytes.io/posts/ 👾 Github: https://github.com/bugbytes-io/ 📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: Pydantic AI Dependencies: https://ai.pydantic.dev/dependencies/ #pythondatascience #pydantic #agenticai