-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add Agent.run_stream_sync method and sync convenience methods on StreamedRunResult
#3146
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
+526
−5
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ccaf87f
Add run_stream_sync
ajac-zero 64586b4
Merge branch 'pydantic:main' into sync_stream
ajac-zero 8623cb9
add lazy implementation
ajac-zero bb5c7fe
Merge branch 'main' into sync_stream
ajac-zero 6497f63
Merge branch 'pydantic:main' into sync_stream
ajac-zero 6e74a2a
add _sync methods to StreamedRunResult
ajac-zero db860ed
fix doctest
ajac-zero 1f1952c
Merge branch 'main' into sync_stream
ajac-zero e523987
Merge branch 'main' into sync_stream
ajac-zero 5ec9b49
add disclaimers
ajac-zero e1765d3
add fixture override
ajac-zero 4f0d2ad
update docs
ajac-zero 842d0e9
Update tests/test_streaming.py
ajac-zero 12e96a6
Update pydantic_ai_slim/pydantic_ai/result.py
ajac-zero 00246b5
Merge branch 'main' into sync_stream
ajac-zero 9896901
turn run_stream_sync into normal method
ajac-zero 1d0b46f
add infer_name
ajac-zero 344c510
update docstrings
ajac-zero 584ae6a
Update pydantic_ai_slim/pydantic_ai/_utils.py
DouweM cf2b9b6
Tweaks, add validate_response_output_sync
DouweM b35a92a
Merge branch 'main' into pr/ajac-zero/3146
DouweM db271eb
StreamedRunResultSync
DouweM 888ee18
test wrapper methods
ajac-zero 83b46fd
fix strict-no-cover
ajac-zero 4f533b9
Merge branch 'main' into sync_stream
DouweM cec5df6
Update docs/agents.md
DouweM 1ebd165
Merge branch 'main' into sync_stream
DouweM 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
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.
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.