-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add Agent.output_json_schema() method
#3454
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
g-eoj
wants to merge
46
commits into
pydantic:main
Choose a base branch
from
g-eoj:3225
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 all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
0ee01f1
Add output_json_schema property to Agents
g-eoj 80dd6e3
Add test outline
g-eoj 7127de6
Fix typecheck errors
g-eoj 291fa1f
Merge branch 'main' into 3225
g-eoj d1b2399
Capture title and desc for tool output
g-eoj 4454583
Add tests
g-eoj fdc8820
Fix typecheck errors
g-eoj 93de392
Merge branch 'main' into 3225
g-eoj 79253f1
Change to method
g-eoj ba9433f
Merge branch 'main' into 3225
g-eoj 09184e2
More test stuff
g-eoj 0d58762
Improve test coverage
g-eoj 0043115
Address feedback
g-eoj 123eabc
Merge branch 'main' into 3225
g-eoj 66f26b5
Fix native output
g-eoj 74ac9b6
Split test file and add more tests
g-eoj c0bc7fd
Refactor
g-eoj cff87ad
Skip deferred requests test
g-eoj c44c9c7
Small fixes and more tests
g-eoj 1530488
Merge branch 'main' into 3225
g-eoj 00c6ddd
Update deferred requests snapshot
g-eoj 30c7b54
Maybe fix test coverage
g-eoj 37f9bed
Simplify code
g-eoj 4e8509f
Make copy of processor json schema
g-eoj 74ec324
Use tool_defs instead of instead of processors
g-eoj b0b796f
Merge branch 'main' into 3225
DouweM 3be8f95
Revert "Use tool_defs instead of instead of processors"
g-eoj b92da23
Address feedback
g-eoj 5044fe4
Clean up tests
g-eoj 355573d
Refactor
g-eoj d0e1e9c
Do not discriminate
g-eoj f561373
Only include the data and media_type keys for BinaryImage
g-eoj dad1e17
Revert unneeded changes
g-eoj 597d299
Add test
g-eoj 0b55d53
Merge branch 'main' into 3225
g-eoj a0e8b24
No duplicate schemas
g-eoj 64b61d1
Use Agent.output_types to construct JSON schema
g-eoj cedeb8e
Small fixes
g-eoj 4e305d7
Don't modify _output.py
g-eoj 85e929f
Merge branch 'main' into 3225
g-eoj d78106b
Handle TextOutput
g-eoj 1fd144b
Fix function output
g-eoj 5283df9
Maybe fix coverage
g-eoj e6bc181
Small refactor to address comments
g-eoj e2415af
Refactor for clarity
g-eoj 0110d47
Fix BinaryImage
g-eoj 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
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.
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.
@g-eoj This is so much cleaner that I'm a little embarrassed I didn't come up with it before.