Skip to content

feat: PydanticAI support #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stevenh
Copy link
Contributor

@stevenh stevenh commented Jun 26, 2025

Add support for the PydanticAI integration.

Add missing background change confirmation.

Increase agentic generation ui page size to allow it to display results from the PydanticAI integration better.

Add a description for the human in the loop generate_task_steps tool, so the PydanticAI example works as expected.

Merge write_document and confirm_changes tool into one, which allows it work correctly with the PydanticAI example, without the need for the agent to perform two separate tool calls.

Sort the features, so they are easier to find when reading the code and implementing new integrations.

Fixes: #5

Add support for the PydanticAI integration.

Add missing background change confirmation.

Increase agentic generation ui page size to allow it to display results
from the PydanticAI integration better.

Add a description for the human in the loop generate_task_steps tool, so
the PydanticAI example works as expected.

Merge write_document and confirm_changes tool into one, which allows it
work correctly with the PydanticAI example, without the need for the
agent to perform two separate tool calls.

Sort the features, so they are easier to find when reading the code and
implementing new integrations.

Fixes: ag-ui-protocol#5
@frederikhendrix
Copy link

How far allong is this fully functioning for PydanticAI? When can we expect it to be added to the supported Frameworks?

@stevenh
Copy link
Contributor Author

stevenh commented Jul 6, 2025

Making good progress @frederikhendrix, have been working with the pydantic-ai team to layer it on top of the new toolset support they are adding. It got a review Friday and I'll be working on addressing the feedback next week. You can follow along here.

@frederikhendrix
Copy link

Thank you for letting me know @stevenh . Can users expect that once this is done they can use "CopilotKit" for the UI, AG-UI as the bridge between frontend and API and Pydantic-AI as their AI model running in for example a FastAPI project. I notice missing documentation from a lot of these "open-source frameworks" in relation to building the full stack using these options.

In my mind I think they empower eachother. And it would be amazing if this is how it could work.

@stevenh
Copy link
Contributor Author

stevenh commented Jul 7, 2025

Yes this PR plus the one on the PydanticAI side provide end to end examples using the dojo which uses copilotkit on the client side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PydanticAI support
2 participants