Skip to content

Support AG-UI protocol for frontend-agent communication #2223

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

Merged
merged 9 commits into from
Jul 18, 2025

Conversation

stevenh
Copy link
Contributor

@stevenh stevenh commented Jul 16, 2025

AG-UI adapter enabling integration with the AG-UI protocol via the Agent.to_ag_ui() method.

This includes a full example for all features in the AG-UI dojo.

Fixes ag-ui-protocol/ag-ui#5
Fixes #1864

Copy link
Contributor

hyperlint-ai bot commented Jul 16, 2025

PR Change Summary

Introduced the AG-UI adapter for integration with the AG-UI protocol, including comprehensive documentation and examples.

  • Added documentation for the Agent User Interaction (AG-UI) Protocol.
  • Introduced a convenience method Agent.to_ag_ui() for PydanticAI agents.
  • Included examples demonstrating AG-UI features and integration with PydanticAI.
  • Updated installation instructions to include AG-UI dependencies.

Modified Files

  • docs/install.md

Added Files

  • docs/ag-ui.md
  • docs/api/ag_ui.md
  • examples/pydantic_ai_ag_ui_examples/README.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@DouweM DouweM self-assigned this Jul 16, 2025
@DouweM DouweM marked this pull request as ready for review July 16, 2025 21:44
@stevenh stevenh force-pushed the feat/ag-ui-adapter-toolset branch 3 times, most recently from 828d92d to 46394c1 Compare July 16, 2025 23:39
@stevenh stevenh force-pushed the feat/ag-ui-adapter-toolset branch from 46394c1 to a7eaf53 Compare July 17, 2025 18:32
@DouweM DouweM changed the title feat: AG-UI adapter Support AG-UI protocol for frontend-agent communication Jul 17, 2025
stevenh and others added 7 commits July 17, 2025 22:28
AG-UI adapter enabling integration with the AG-UI protocol via
the Agent.to_ag_ui() method.

This includes a full example for all features in the AG-UI dojo.

Fixes: ag-ui-protocol/ag-ui/issues/5
Restore the empty `ThinkingTextMessageContentEvent` to ensure that the
user can be informed when the model starts thinking, even if no content is
available at that moment.
@stevenh stevenh force-pushed the feat/ag-ui-adapter-toolset branch from c0b402c to 145f71d Compare July 17, 2025 21:29
Refactor examples and documentation for the AG-UI integration, including
renaming and restructuring files for clarity and consistency. This
includes moving examples to a dedicated directory and updating
references in the documentation.

Use Pydantic AI instead of PydanticAI for consistency.

Fix import orders in the examples.
@stevenh stevenh force-pushed the feat/ag-ui-adapter-toolset branch from e9a0669 to 46acd66 Compare July 18, 2025 10:46
Restore AG-UI code snippets in documentation and examples.
@DouweM DouweM merged commit 431ec33 into pydantic:main Jul 18, 2025
19 checks passed
@stevenh stevenh deleted the feat/ag-ui-adapter-toolset branch July 18, 2025 17:11
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.

AG-UI Protocol Integration with Pydantic AI PydanticAI support
2 participants