Pydantic AI and Other AI Curiousities - Update Over the Last Week

Small update about what I've been working on behind the scenes working with AI relating to Pydantic AI and bolt.diy

Hey TWhbP, I haven't updated for the better part of week so figured I would update on some of the things I've been doing. I've mostly been playing with different AI libraries to assess what the current state of AI is. I have a lot of doom and gloom that isn't shared by other programmers, so one of us needs to be wrong I think. I'll continue down my path of keeping an eye on AI developments to ensure I'm at the forefront of the tech.

But I created this with bolt.diy with only 5 prompts using Qwen2.5-coder:14b:

It's a working Tic Tac Toe game. It was able to create the majority of it in 1 prompt, but I wanted to see if it could add background colors and design a logo (the "X" beside the title is the SVG logo it created), so that's where the additional prompts came from. Pretty good for just creating a basic game, it does have to regenerate all the source code each pass so that might not be desirable for large applications. There were a few instances where it reverted to old code that I didn't want, so had to prompt it again.

It has a couple of bugs that I couldn't resolve with AI. Like I wanted it to put the "X" or "O" before it alerted the user that the game has ended but it couldn't figure it out. But this is using consumer hardware, with open source products that are only weeks old. I give it a few years to mature and then we'll really start to see what can happen in every field that AI touches.

Pydantic AI Structured Output

So this is cool we can use AI to generate source code to do what a developer can do. But sometimes developers need to read source code or invoke APIs in other systems to get what information they need to make their application work. That's where Pydantic AI comes in! It's in beta so not exactly production ready, but it allows for developers to create tools with AI that can leverage other technologies in an "enterprise grade" way. It allows for retries, logging, and many other features a developer would want when interacting with an AI model.

The tooling might be immature, but the community is clamoring over this new toolset. As of writing there are over 150 issues that have been opened and this project has only been around since late June 2024. I was trying to make a web scraping tool with Pydantic AI and added some comments to an issue where I started to dig into Pydantic AI.

So yea, just some meandering thoughts and my process in determining and discussing the new tech of AI. It's still in it's infancy, and I should really look into decentralized identity more. AI is just too captivating of a tool, it has such mystery and power to it.

Isaac

Leave a comment

Please note that we won't show your email to others, or use it for sending unwanted emails. We will only use it to render your Gravatar image and to validate you as a real person.

TWhbP:blog - Check out other posts form this movement!