-
-
Notifications
You must be signed in to change notification settings - Fork 197
AG-UI Support #244
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
AG-UI Support #244
Changes from 4 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8b83ea9
rebuilt PR
jherr 0281573
updating gemini tests
jherr 63a1a79
ci: apply automated fixes
autofix-ci[bot] e85814a
grok and open-router updates
jherr 1ad74b2
tool call fixes
jherr d9ec4af
better tests
jherr ae17108
stabilizing tests
jherr f0d7e6b
updating tests
jherr 7108d8a
more legacy removal
jherr 2c1c8ed
ci: apply automated fixes
autofix-ci[bot] ba3a1d8
very close
jherr 1ece44e
finished with AG-UI, hopefully
jherr 5c47402
Merge branch 'feat/ag-ui-events' of github.com:TanStack/ai into feat/…
jherr eb22ab8
Merge branch 'main' into feat/ag-ui-events
jherr eeba2f1
Merge branch 'main' into feat/ag-ui-events
AlemTuzlak 971b19f
fix up stale body bug
AlemTuzlak f530a43
Merge branch 'feat/ag-ui-events' of https://github.com/TanStack/ai in…
AlemTuzlak d79e14e
final ag-ui
jherr 2a7de26
ci: apply automated fixes
autofix-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| '@tanstack/ai': minor | ||
| '@tanstack/ai-openai': minor | ||
| '@tanstack/ai-anthropic': minor | ||
| '@tanstack/ai-gemini': minor | ||
| '@tanstack/ai-ollama': minor | ||
| --- | ||
|
|
||
| feat: Add AG-UI protocol events to streaming system | ||
|
|
||
| All text adapters now emit AG-UI protocol events in addition to supporting legacy event types: | ||
|
|
||
| - `RUN_STARTED` / `RUN_FINISHED` - Run lifecycle events | ||
| - `TEXT_MESSAGE_START` / `TEXT_MESSAGE_CONTENT` / `TEXT_MESSAGE_END` - Text message streaming | ||
| - `TOOL_CALL_START` / `TOOL_CALL_ARGS` / `TOOL_CALL_END` - Tool call streaming | ||
|
|
||
| This provides a standardized event format across all adapters while maintaining backward compatibility with existing code that processes legacy `content`, `tool_call`, and `done` events. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document all AG-UI event types introduced in this PR.
The changeset omits several event types mentioned in the broader PR changes. Based on the AI summary, the following event types are also part of the AG-UI protocol but are not documented here:
RUN_ERROR— error lifecycle eventSTEP_STARTED/STEP_FINISHED— step lifecycle eventsSTATE_SNAPSHOT/STATE_DELTA— state eventsCUSTOM— custom eventsInclude all introduced event types in the changeset description to provide a complete changelog for users.
🤖 Prompt for AI Agents