DEV Community

Cover image for Build a Stock Portfolio AI Agent (Fullstack, Pydantic AI + AG-UI)

Build a Stock Portfolio AI Agent (Fullstack, Pydantic AI + AG-UI)

Bonnie on October 02, 2025

TL;DR In this guide, you will learn how to build fullstack AI agents with Pydantic AI with the AG-UI protocol. Also, we will cover how t...
Collapse
 
nathan_tarbert profile image
Nathan Tarbert CopilotKit •

Awesome job @the_greatbonnie, bringing the Pydantic AI agents to the frontend so the user can collaborate with them directly is amazing!

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

Thanks, Nathan.

I am happy to hear that.

Collapse
 
johncook1122 profile image
John Cook •

We've switched to Pydantic. Where it really shines where most agent frameworks struggle like predictable, structured outputs that actually validate against your data set.

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

That's awesome, John.

I am happy to hear, that.

Collapse
 
samcurran12 profile image
Sammy Scolling •

I definitely want to try this one, thanks!

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

Try it out and let me know how you find it.

Collapse
 
johnwoods12 profile image
johnwoods12 •

This is sick!
I know what I'm coding out this weekend

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

Hope you find it helpful.

Collapse
 
henryjohn21 profile image
henryjohn21 •

Great tutorial, thanks for sharing!

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

You are welcome, Henry.

Collapse
 
henrywills22 profile image
Henry Willz •

This is cool

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

Thanks

Collapse
 
william123 profile image
William •

I started building this recently and this guide helped me fly through it, thanks!

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

I am happy to hear that, William.

Collapse
 
morgan-123 profile image
Morgan •

This is a great project to try! Definitely doing this next, thanks

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

I am happy to hear that, Morgan.

Collapse
 
steven0121 profile image
Steve •

Saved this for later :)

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

That sounds awesome, Steven.

Collapse
 
ferguson0121 profile image
Ferguson •

So glad this integration came out! Pydantic AI and AG-UI

Collapse
 
the_greatbonnie profile image
Bonnie CopilotKit •

I am happy to hear that, Ferguson.