How to Build AI Agents with PydanticAI (Python Tutorial)

  Рет қаралды 17,724

Dave Ebbelaar

Dave Ebbelaar

Күн бұрын

Пікірлер: 48
@daveebbelaar
@daveebbelaar Ай бұрын
🛠 Want to get started with freelancing? Let me help: www.datalumina.com/data-freelancer 📚 Learning Data/AI? Join for free: www.skool.com/data-alchemy 🚀 Building AI apps? Check out: launchpad.datalumina.com/ 💼 Need help with a project? Work with me: www.datalumina.com/solutions
@AnthonyAlcerro-v6d
@AnthonyAlcerro-v6d Ай бұрын
We need a full tutorial on how to do evals 🙏
@daveebbelaar
@daveebbelaar Ай бұрын
Noted!
@IdPreferNot1
@IdPreferNot1 Ай бұрын
Love that you chose to do a video on this. I wouldnt bet against Pydantic and see this a an even better version of Swarm.
@rossvegas8
@rossvegas8 20 күн бұрын
Thank you for the detailed explanation! It would be helpful to see a comparison between tool/function calling and multi-agent approaches, along with guidance on when to use each.
@eneskosar4649
@eneskosar4649 Ай бұрын
Very informative Dave, thanks for all the work. You're the best
@hosseinsamaei5779
@hosseinsamaei5779 Күн бұрын
Thanks, Dave. A tutorial for running multiple agents interacting to reach a specific goal would be great!
@ReneLuijk-t4f
@ReneLuijk-t4f 14 күн бұрын
Great overview! I’ve been building something from scratch but am considering integrating parts of PydanticAI. In my use case, the code is designed to help users-specifically those who enjoy automating their workflows but aren’t programmers-operate at the simplest level of abstraction, enabling their agents to communicate and collaborate to accomplish tasks. In other words, I’m not directly exposing the Pydantic concept but aiming to simplify it further and create new abstractions that make automation more accessible for my user base
@juanantonionavarrojimenez2966
@juanantonionavarrojimenez2966 Ай бұрын
The evaluation is perfect. That's the way. Thanks.
@jordan-kz3rx
@jordan-kz3rx Ай бұрын
Thank you man, this knowledge is really valuable and presented so well.
@rembautimes8808
@rembautimes8808 Ай бұрын
Great video and thanks for sharing. I think having a leaner stack is better because it’s quite easy for a big stack to introduce dependency conflicts. Also Pydantic’s integration with FastAPI is awesome 😂
@RobShocks
@RobShocks Ай бұрын
Great breakdown. I'm all for less abstraction. Having been in JS world for years there are so many frameworks and tools coming out just for the sake of it. Focus on the problem, reverse engineer and pick the right tool. In many cases you don't need the chainsaw to top a pencil.
@daveebbelaar
@daveebbelaar Ай бұрын
Exactly!
@jirivchi
@jirivchi Ай бұрын
thanks for all your content! it is very informative and helpful
@daveebbelaar
@daveebbelaar Ай бұрын
Thanks!
@mt5
@mt5 12 күн бұрын
Hello Dave Ebbelaar, regarding the temperature, you can provide it like so: agent = Agent(model=model,model_settings={'temperature': 0.1}) but it doesn't actually change the behaviour (right now). I think, that needs to be implemented by the Pydantic team 🤔
@kenchang3456
@kenchang3456 Ай бұрын
Thanks for all the information I appreciate it.
@khandelwal0shekhar0
@khandelwal0shekhar0 Ай бұрын
Dave I really want to know your take on phidata ?
@silver1544
@silver1544 Ай бұрын
Thanks for your review! What would you recommend to use instead of PydanticAI at the moment (until it's matured)? Just using plain API?
@bmatlega
@bmatlega 27 күн бұрын
I would like to know that as well
@Geeisjudied
@Geeisjudied 16 күн бұрын
I would like to know this as well
@aleksandreliott5440
@aleksandreliott5440 15 күн бұрын
Could you do a video on securing vector embeddings in postgres?
@PriyankBolia
@PriyankBolia Ай бұрын
Please use bigger fonts like other channels, sometimes I use a laptop to watch, and its hard to read.
@daveebbelaar
@daveebbelaar Ай бұрын
Noted!
@AbuBakr1
@AbuBakr1 25 күн бұрын
Exactly...very difficult to view text on the screen
@Kivalt
@Kivalt Ай бұрын
Does it integrate with OpenRouter?
@chefzieher
@chefzieher Ай бұрын
Great video! I like that you are using the interactive execution in vscode/cursor. How do you debug that code? (I didn't figure that out yet)
@daveebbelaar
@daveebbelaar Ай бұрын
The interactive mode is great for debugging as well as you can just go line by line and execute your code.
@heheeheh9711
@heheeheh9711 Ай бұрын
Hoow is this Agentic Framework comapred to phidata Framework???
@heheeheh9711
@heheeheh9711 Ай бұрын
or AUTOGEN
@IdPreferNot1
@IdPreferNot1 Ай бұрын
I thought llms loved json structure. Cool markdown utility function but why needed?
@daveebbelaar
@daveebbelaar Ай бұрын
It depends on the model. Claude prefers XML while OpenAI prefers Markdown or JSON. With small JSON files, it doesn't really matter, but we've found that the model can sometimes miss information with big nested JSON files. As with anything, you can test and compare for your use case to see if you really need the Markdown conversion. I've also found that Markdown is easier to debug when you're looking at it in your observability platform (like Langfuse). It's even more human readable than JSON. Hope that helps.
@IdPreferNot1
@IdPreferNot1 Ай бұрын
@@daveebbelaar thank you!
@matthewchung74
@matthewchung74 12 күн бұрын
where is the link to the interactive Jupyter env?
@devfaidevach
@devfaidevach Ай бұрын
Please use bigger fonts. Thanks 👍
@micbab-vg2mu
@micbab-vg2mu Ай бұрын
THANKS :)
@daveebbelaar
@daveebbelaar Ай бұрын
I can always count on you! 💪🏻
@artursradionovs9543
@artursradionovs9543 Ай бұрын
Does PydanticAI support local running LLM’s?
@aristidefumagalli5100
@aristidefumagalli5100 Ай бұрын
Yes OpenAI compatible endpoint
@artursradionovs9543
@artursradionovs9543 26 күн бұрын
@ how about OLLAMA?
@paturibharath7948
@paturibharath7948 28 күн бұрын
good tutor
@PriyankBolia
@PriyankBolia Ай бұрын
How does it compare to langchain?
@daveebbelaar
@daveebbelaar Ай бұрын
LangChain is an entire ecosystem. PydanticAI is a really lean framework for solving specific problems around data validation for LLMs. I prefer this leaner, more simple approach.
@TheOrionMusicNetwork
@TheOrionMusicNetwork Ай бұрын
Skip langchain bro. Trust me. You don't need that pain in your life.
@daveebbelaar
@daveebbelaar Ай бұрын
@@TheOrionMusicNetwork 😂
@PriyankBolia
@PriyankBolia Ай бұрын
@@daveebbelaar Any specific reasons? problems you faced. Trying learning langraph
@daveebbelaar
@daveebbelaar Ай бұрын
@@PriyankBolia LangChain’s ecosystem feels overly complex for me. I’ve faced versioning issues and had to dig through multiple abstraction layers to debug unimplemented features, which made troubleshooting a headache. I’d rather build lightweight, purpose-driven components from scratch. Avoiding frameworks helps keep my projects simpler, faster, and free of unnecessary dependencies.
@mauricioalfaro9406
@mauricioalfaro9406 7 күн бұрын
PedanticAI?
17 Python Libraries Every AI Engineer Should Know
19:57
Dave Ebbelaar
Рет қаралды 17 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 111 М.
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
Should You Adopt Pydantic AI? Deep Dive + Real Use Cases!
52:14
YourTechBud Codes
Рет қаралды 7 М.
PydanticAI Agents that Code
15:09
Riza, Inc.
Рет қаралды 2,9 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 298 М.
We've Been Building AI Agents WRONG Until Now
19:51
Cole Medin
Рет қаралды 56 М.
How I'd Learn AI in 2025 (if I could start over)
17:55
Dave Ebbelaar
Рет қаралды 1,2 МЛН
PydanticAI - The NEW Agent Builder on the Block
21:45
Sam Witteveen
Рет қаралды 32 М.
Pydantic AI + DeepSeek V3 - The BEST AI Agent Combo
29:20
Cole Medin
Рет қаралды 32 М.
Why Pydantic AI is the Future of AI Agents
22:48
MLOps.community
Рет қаралды 11 М.
Build high-performance RAG using just PostgreSQL (Full Tutorial)
35:43