PydanticAI - The NEW Agent Builder on the Block

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025

ความคิดเห็น • 88

  • @zakariaabderrahmanesadelao3048
    @zakariaabderrahmanesadelao3048 2 หลายเดือนก่อน +24

    The power of LLMs + the control of Vanilla Python. This is going to be awesome.

  • @pleabargain
    @pleabargain 2 หลายเดือนก่อน +15

    Thanks for the detailed walk through. re: RAG system: Yes, please make a video about PydanticAI RAG.

  • @yschermer3124
    @yschermer3124 2 หลายเดือนก่อน +3

    Finally, a simple AI layer that just abstracts what is actually useful to abstract. Can't wait to try it out on my next project!

  • @ratral
    @ratral 2 หลายเดือนก่อน +4

    Thank you, @Sam. Great job, as always! It's excellent that Pydantic has incorporated AI. I would love to learn more about what can be achieved with PydanticAI.

  • @comfixit
    @comfixit 2 หลายเดือนก่อน +3

    Great choice of video topic and excellent job demonstrating the potential for the framework, great examples. 5 Stars!

  • @peter102
    @peter102 หลายเดือนก่อน

    very good video. easy to follow along and i learnt alot. will be using this framework in production. thanks sam

  • @dudepowpow
    @dudepowpow 2 หลายเดือนก่อน +2

    Straight to the point and great insight, thank you!

  • @gmongalo
    @gmongalo 2 หลายเดือนก่อน

    Great overview! Thanks for the easy to follow walkthrough, excited to use it. Cheers !

  • @tk0150
    @tk0150 หลายเดือนก่อน

    Yes please show more about using it as a rag and even how multi genic system can be created.

  • @yotubecreators47
    @yotubecreators47 2 หลายเดือนก่อน +50

    it's time to replace Langchain

    • @yuri.caetano
      @yuri.caetano 2 หลายเดือนก่อน +4

      Bro, I tried langraph, but its bit complex and I cant integrate very well with openai agents.

    • @apoorvgarg2926
      @apoorvgarg2926 2 หลายเดือนก่อน +1

      True😂 back to basic!

    • @zakariaabderrahmanesadelao3048
      @zakariaabderrahmanesadelao3048 2 หลายเดือนก่อน +1

      What about CrewAI?

    • @orthodox_gentleman
      @orthodox_gentleman 2 หลายเดือนก่อน +1

      YES! Langchain absolutely is a mess.

    • @gregtanaka3406
      @gregtanaka3406 2 หลายเดือนก่อน

      Does this have caching?

  • @SaahilKhan8
    @SaahilKhan8 2 หลายเดือนก่อน +7

    Your content is amazing! *Subbed*

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      Thanks glad you like it!

  • @horseheadhunchback
    @horseheadhunchback 2 หลายเดือนก่อน

    Every time I watch one of your videos it’s a hit.

  • @viveksuryavanshi6165
    @viveksuryavanshi6165 2 หลายเดือนก่อน

    Thanks Sam, this was great OG style !!

  • @jzam5426
    @jzam5426 2 หลายเดือนก่อน

    It seems like a very high-level wrapper for langchain with easy to use memory and semi-automated tool response. Very cool.

  • @ShlomiSchwartz
    @ShlomiSchwartz 2 หลายเดือนก่อน +2

    Great video, Sam! Thanks for breaking down Pydantic Al so well. Quick question: Could you create a video on how you think two agents should communicate and hand off tasks between each other? I’d love to see your perspective on that!

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน +1

      Sounds interesting do you have a specific use case. I am looking for a few ideas to make so more examples

    • @ShlomiSchwartz
      @ShlomiSchwartz 2 หลายเดือนก่อน

      What about a booking assistant? One agent gathers user preferences, and the other uses tools to finalize and confirm the booking.

    • @ShlomiSchwartz
      @ShlomiSchwartz 2 หลายเดือนก่อน

      Adding a RAG system could be great! For example, when asked, 'Can you show me the cancellation policy for this hotel booking?' the first agent could retrieve specific details from indexed data, making the conversation seamless and informative.

  • @robcz3926
    @robcz3926 2 หลายเดือนก่อน +5

    there has been a serious shortage of frameworks in the AI space so thank god they came out with this.

    • @faustoalbers6314
      @faustoalbers6314 2 หลายเดือนก่อน +3

      This is an iteration on Instructor. There have not been many frameworks better than that IMHO, so pretty stoked to see this one come out.

    • @sprobertson
      @sprobertson 2 หลายเดือนก่อน

      😂

  • @jafors7
    @jafors7 2 หลายเดือนก่อน

    Great vid fella. Keep em coming

  • @zhalberd
    @zhalberd หลายเดือนก่อน

    Very helpful video thank you! Thumbs upped. Please make another video about PydanticAI but install on your local machine instead of Colab. Also, please add CAG or RAG (or KAG if you dare) - database and memory options would be interesting to see incorporated.

    • @samwitteveenai
      @samwitteveenai  หลายเดือนก่อน

      Certainly gonna make some more videos on Pydantic AI. There were a number of GitHub issues that I was waiting on them to address, but I think they've been done now. Need to check when I get a chance. Regarding the RAG stuff I will certainly be revisiting RAG , I think its about a year since I did that anything on RAG. The Cache Augment stuff is cool as is the Graph/Knowledge stuff, the challenge is giving people a simple code demo etc.to teach it. It might be more suited to a course etc.

  • @evgenyminkevich6587
    @evgenyminkevich6587 2 หลายเดือนก่อน

    Great overview. Thank you!

  • @Sathias_
    @Sathias_ 2 หลายเดือนก่อน

    I would love this to support Ollama

  • @RobertFitz-r8r
    @RobertFitz-r8r 2 หลายเดือนก่อน +2

    Thanks for the insightful video on this new framework by Pydantic AI. For a single agent, the developer experience looks certainly lightweight and easygoing.
    Does this also apply, if one wants to scale this up to multiple agents that require some sort of intelligent agent orchestration?

  • @KierstenCrystalLillian
    @KierstenCrystalLillian 2 หลายเดือนก่อน +45

    aitutorialmaker AI fixes this. PydanticAI: New Agent Builder

    • @tk0150
      @tk0150 หลายเดือนก่อน

      Please explain?

  • @KevinKreger
    @KevinKreger 2 หลายเดือนก่อน

    Fabulous! Extremely useful 🙂

  •  2 หลายเดือนก่อน

    very nice. thanks Sam

  • @MeinDeutschkurs
    @MeinDeutschkurs 2 หลายเดือนก่อน

    Yeah, all these frameworks and examples being presented look great - but as always, the real problem lies elsewhere: Specifically in the orchestration, meaning the decision about which of all these possibilities (tools, workflows, output formats etc.) are even relevant and should be used for the current user prompt. And all of that while considering the complete conversation history! As far as I can tell, nobody on TH-cam has really dared to tackle this core issue yet.​​​​​​​​​​​​​​​​ 🎉

    • @matzls79
      @matzls79 หลายเดือนก่อน +1

      This came to mind for me as well. Would be great to get some insights/how to`s for the orchestration. Many thanks for the first walkthrough though!

  • @kenchang3456
    @kenchang3456 2 หลายเดือนก่อน +1

    Thanks Sam for another valuable video.

  • @ko5syrup
    @ko5syrup 2 หลายเดือนก่อน +1

    great walk through! I think the only critique I took from you was it being for “simple” setups. Is that your take?

  • @adamgkruger
    @adamgkruger 2 หลายเดือนก่อน

    Love it

  • @60pluscrazy
    @60pluscrazy 2 หลายเดือนก่อน

    Thanks 🎉🎉🎉

  • @josephfouad3561
    @josephfouad3561 2 หลายเดือนก่อน

    Great content as usual, Please make a follow-up for RAG

  • @nathannowack6459
    @nathannowack6459 2 หลายเดือนก่อน +1

    fwiw instructor fast followed prefecthq/marvin, but has broader llm support. anyways, glad to see pydantic make this!
    PS: i wouldn’t use use nest_asyncio, it causes problems in practice. just don’t use notebooks :)

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน +1

      Colab is a great way to show something so people can see how it works. without having to install all the dependencies etc. Not telling people to use this for prod

    • @nathannowack6459
      @nathannowack6459 2 หลายเดือนก่อน

      i appreciate that! good video by the way. i’ve just been bitten by nest_asyncio conflicts with normal asyncio before haha

  • @jeelanshahtlyr6076
    @jeelanshahtlyr6076 หลายเดือนก่อน

    Thank you for the insightful video on Pydantic AI! I'm curious if you have any suggestions for a workaround since Pydantic AI doesn't have native integration with Supabase. Any advice would be greatly appreciated!

  • @will2ride
    @will2ride 2 หลายเดือนก่อน

    Top uitgelegd.

  • @sitrakaforler8696
    @sitrakaforler8696 2 หลายเดือนก่อน

    Dammmm nice !

  • @ArdavanDehghan-h2l
    @ArdavanDehghan-h2l 2 หลายเดือนก่อน

    Great videos! As a newbie coder, I would like to build a simple POC for an action AI browser Agent (for signups, filling forms etc.). Which framework do you recommend? (as an intro, I did the CrewAI DeepLearning AI course), but from your videos, it seems that Langraph or the new Microsoft Magentic frameworks seem maybe more suited for my POC use case?
    Many thanks 🙏

  • @ShubharthakSangharsha
    @ShubharthakSangharsha 2 หลายเดือนก่อน

    Now I can build amazing tools without thinking of any bugs. Thanks to pydantic AI. I will defintely gonna use it on my apsara2.0. Time to say Bye to Langchain (so complex man)

  • @60pluscrazy
    @60pluscrazy 2 หลายเดือนก่อน +2

    How does it decide on the tool call order? Based on the order of tool injection?

    • @avidlearner8117
      @avidlearner8117 หลายเดือนก่อน

      There is no order; the LLM choose the appropriate tool based on the context of the question asked.

  • @Cryptowski
    @Cryptowski หลายเดือนก่อน

    can we use this framework to create self-learning autonomous agents that are constantly evolving?

  • @tascheidt
    @tascheidt 2 หลายเดือนก่อน

    Please do a RAG example!

  • @daviscraig1526
    @daviscraig1526 หลายเดือนก่อน

    Where would you recommend going to learn more about the basic python skills that would help a beginner programmer with using PydanticAI?

    • @samwitteveenai
      @samwitteveenai  หลายเดือนก่อน

      Yes using something like this you really want to know at least the basics of Python. Lots of good tutorials on TH-cam and should only take a few hours. The practice with it.

  • @theh1ve
    @theh1ve 2 หลายเดือนก่อน

    I'm using bedrock through AWS to call Claude how easy would it be to hook it up? Would love to see agent RAG with this.

  • @lakergreat1
    @lakergreat1 2 หลายเดือนก่อน

    So what's the difference from pydantic AI structured outputs vs using open AI structured outputs of both us gpt-4o?

  • @awakenwithoutcoffee
    @awakenwithoutcoffee หลายเดือนก่อน

    PydanticAI with LangGraph seems a powerful combo. Very bullish on building with PydanticAI.

  • @dankprole7884
    @dankprole7884 2 หลายเดือนก่อน

    I will use this just to spite open ai and anthropic

  • @Profusion_AI
    @Profusion_AI 2 หลายเดือนก่อน

    Thanks for dropping this info. So is this essentially competing with Anthropic’s MCP to standardize function calling?

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      no more competing with LangChain and CrewAI etc

    • @preyenperumallable
      @preyenperumallable 2 หลายเดือนก่อน +1

      I immediately thought about MCP too. So thanks for posing the question. Can we use the pydantic framework to do all the orchestrating in host app and tool call using the MCP etc? I liked the idea of separating the tools logic from the interface logic. Or I have completely lost the plot, boy do these things move fast! Im a biomedical engineer dabbling in the computer sciences, what a ride.

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      interesting idea. yeah you could use it with MCP. I have a 2nd MCP vid done but I had some issues with timeouts I might look at putting something with this in.

    • @preyenperumallable
      @preyenperumallable 2 หลายเดือนก่อน

      I look forward to seeing it! . And thank you again for your work. Always helpful to watch and challenging my own thoughts about all these things.
      I’ve just discovered Bret Victor’s DynamicLand and my mind is blowing out of control with all these ideas .
      All the best to you.

  • @avi7278
    @avi7278 2 หลายเดือนก่อน

    Sam how well would this integrate with the outlines project?

  • @thegtlab
    @thegtlab หลายเดือนก่อน

    can you use local models like qwen? through ollama

    • @samwitteveenai
      @samwitteveenai  หลายเดือนก่อน +1

      yes you can. I will try make a video of this at some point

  • @WillJohnston-wg9ew
    @WillJohnston-wg9ew 2 หลายเดือนก่อน

    Sam, with all of these agent models, which would you say is generically the best (breadth of functionality, ease of implementation, future ready...)?

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      it really depends on your use case. LLMs I generally use Sonnet 3.5, Gemini Flash for proprietary models these days. Open Source I generally am using fine tunes of small models, like Phi, Gemma2 and Qwen

  • @martg0
    @martg0 2 หลายเดือนก่อน

    What AI workflow orchestrator would you use in AWS combined with Bedrock?

  • @adriangabriel3219
    @adriangabriel3219 หลายเดือนก่อน

    How is PydanticAI solving some of the most pressing issues like orchestration of complex tasks?

  • @thanhquachable
    @thanhquachable 2 หลายเดือนก่อน

    Pydantic should have done this a long time ago

  • @IdPreferNot1
    @IdPreferNot1 2 หลายเดือนก่อน

    Given that LLMs are stateless, agents serve as large state models to carry context from action to action and agent to agent. No better model system than Pydantic. This is a better version of Swarm, also using dynamic prompts and context variable injection, automatic function interpretation to drive tool calls, and with a better state model for better context management. I built a backup context manager for my attempt at a personal agent Swarm with pydantic models, and here thye come out and have it built in. I wouldn't bet against these guys. There is no need for complicated agent frameworks and graphs etc beyond this, as llms can now drive their own path.

  • @Jurfyste
    @Jurfyste 2 หลายเดือนก่อน

    Would this work with a private model?

  • @donFrankAlvarez
    @donFrankAlvarez 2 หลายเดือนก่อน

    This or CrewAI, you think?

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน +1

      this gives you far more control than CrewAI. CrewAI is probably easier to use for non coders though.

    • @donFrankAlvarez
      @donFrankAlvarez 2 หลายเดือนก่อน

      @@samwitteveenai It might actually be the opposite. Getting started wasn't hard but now that the project has grown, I spend more time dealing with input validation and parsing errors than actually developing, that's why I'm looking at PydanticAI as an alternative. It just seems more production-ready. Plus, I have a feeling that my AI IDE (Widsurf) will have an easier time with conventional python usage instead of having to re-learn CrewAI usage patterns every single dev session.

  • @auslei
    @auslei 2 หลายเดือนก่อน +3

    Unless there is limitless context window and AI can directly manage and interact with an environment. Agentic AI is overrated. You still have to write functions and AI is basically deciding a process flow and fails on simple ones even, due to hallucinations. Also it is extremely hard to debug and expensive to run. It’s a lot easier to write code right now to perform tasks they can do.

  • @PavanMuppala
    @PavanMuppala 2 หลายเดือนก่อน

    Its a mess with this pydanticAI
    I don’t understand if its hallucinating the responses or i am hallucinating. Unreliable responses its bad in my opinion.

  • @Quaquaquaqua
    @Quaquaquaqua 2 หลายเดือนก่อน

    Glad i can stop building this myself