-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(ag-ui): preserve thinking signatures, files and tool returns in roundtrip; fix stray TOOL_CALL_ARGS (#4733)
#3971
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
Open
dsfaccini
wants to merge
42
commits into
pydantic:main
Choose a base branch
from
dsfaccini:fix-anthropic-thinking-with-agui
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 32 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
46be3c4
fix(ag-ui): preserve thinking signatures for Anthropic extended thinking
dsfaccini fcace3f
coverage
dsfaccini b97a6bd
add exhaustive check
dsfaccini d8dff4f
small refac
dsfaccini d27302f
small refac test
dsfaccini 77ba046
fix test
dsfaccini 2956cc3
address comments and add sources
dsfaccini ae791a4
full roundtrip + multimodal and tool return support
dsfaccini a713e0f
coverage
dsfaccini 6aa6821
coverage
dsfaccini 58bea1f
ciovergae
dsfaccini fdee119
Merge branch 'main' into fix-anthropic-thinking-with-agui
dsfaccini 7ead847
Merge branch 'main' into fix-anthropic-thinking-with-agui
dsfaccini 65634dd
Merge branch 'main' into fix-anthropic-thinking-with-agui
dsfaccini 2d5b5d9
bump agui
dsfaccini ad81fa6
fix backwards comp
dsfaccini 73e62df
merge main;
dsfaccini 3d61605
fix: align DummyUIEventStream with base class after follows_thinking …
dsfaccini 2cffd38
address
dsfaccini d6e0e76
Merge remote-tracking branch 'upstream/main' into fix-anthropic-think…
dsfaccini 17e3517
fix: handle UploadedFile in AG-UI adapter, fix coverage gaps
dsfaccini fff957d
best of both worlds
dsfaccini d713b4b
test: cover UploadedFile branch in AG-UI adapter for 100% coverage
dsfaccini c7d6de0
feat: add include_file_parts opt-in flag to AGUIAdapter for FilePart …
dsfaccini ad7606f
Merge branch 'main' into fix-anthropic-thinking-with-agui
dsfaccini 762775e
fix: validate encrypted_value JSON is a dict, add coverage tests
dsfaccini c2017dc
chore: add .agents/* to .gitignore
dsfaccini 8ca25f7
fix: remove redundant ValueError catch from JSONDecodeError handler
dsfaccini 2783d83
fix: address PR review — ag_ui_version, preserve_file_data, stray del…
dsfaccini 4a430e7
Merge remote-tracking branch 'origin/main' into fix-anthropic-thinkin…
dsfaccini 9f9fd41
fix: expose ag_ui_version in handle_ag_ui_request
dsfaccini 966a3be
Merge branch 'main' into fix-anthropic-thinking-with-agui
dsfaccini ae86323
coverage
dsfaccini 2df3abc
fix: use fixtures instead of IsBytes() in test_messages snapshot
dsfaccini b49be72
refactor: use semver >= comparisons for ag_ui_version instead of Lite…
dsfaccini d244c07
address review: AGUIVersion type, auto-detect default, cache version …
dsfaccini 98b053f
Merge remote-tracking branch 'upstream/main' into fix-anthropic-think…
dsfaccini f64bd5f
fix: handle TextContent in _user_content_to_input after merge with main
dsfaccini e54f27a
coverage: handle TextContent, test version validation/detect fallback…
dsfaccini ab9c5ae
fix: gate reasoning imports for ag-ui-protocol backward compat
dsfaccini d3a22db
fix coverage: pragma on ReasoningMessage stub, test old version detec…
dsfaccini 41bd1a0
add comment
dsfaccini 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
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
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 |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| """AG-UI protocol integration for Pydantic AI agents.""" | ||
|
|
||
| from ._adapter import AGUIAdapter | ||
| from ._event_stream import AGUIEventStream | ||
| from ._event_stream import AGUIEventStream, AGUIVersion | ||
|
|
||
| __all__ = [ | ||
| 'AGUIAdapter', | ||
| 'AGUIEventStream', | ||
| 'AGUIVersion', | ||
| ] |
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.
Uh oh!
There was an error while loading. Please reload this page.