-
Notifications
You must be signed in to change notification settings - Fork 583
Support openai-agents
#4437
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
Support openai-agents
#4437
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
09425e6
Barebone of new integration
antonpirker 03f7e24
Creating some spans
antonpirker b24fe91
Removed traceprovider. the hooks work great
antonpirker 2558fd1
cleanup
antonpirker 5ce67e7
use scopes, that what they are meant for.
antonpirker 55f3ea8
Cleanup
antonpirker 0385775
Create transaction for runner.run
antonpirker 2f38a88
Enable our RunHooks automatically
antonpirker 4f25c2e
cleanup
antonpirker 22ed21c
Better naming
antonpirker be37679
organized code
antonpirker 1a72a92
Set some common data
antonpirker f28fc61
work on tool span
antonpirker 2e24997
organize code
antonpirker bba3ef2
organize code
antonpirker cf06427
organize code
antonpirker d9acb1e
organize code and set operation name
antonpirker 87f6562
set gen_ai.system
antonpirker c8a89db
ai client spans
antonpirker 1f21a3b
Added token usage to ai client spans
antonpirker 1e24c10
refactoring
antonpirker a1763ec
refacotring
antonpirker 5d392f6
order
antonpirker e7710bc
order
antonpirker 990fae0
better ai client spans
antonpirker 1ac4337
cleanup
antonpirker 08c47e5
moving stuff around
antonpirker 6db1476
moving stuff around
antonpirker 5ca575c
some consistency
antonpirker c6dbe47
Tool input and output
antonpirker fd028ef
removed debug output
antonpirker 18f3b41
Using deprecated attr names to make ui work
antonpirker d64a1de
Updated prompt messages format.
antonpirker 8c7a3dc
better input and output for ai client span
antonpirker c41a63b
renamed some attributes
antonpirker 2e53aa7
Add available tools to client span
antonpirker 5331ace
add it everywhere where an agent is available
antonpirker cd1f4ee
made tool_calls array of object
antonpirker c9b06e4
cleanup
antonpirker 0942b56
cleanup
antonpirker 92f015d
cleanup
antonpirker 78064e7
cleanup
antonpirker e79d3c7
handle pii
antonpirker cead2b0
Merge branch 'master' into antonpirker/openai-agents-integration
antonpirker 3ff9242
first version of vibe coded test suite
antonpirker 39c124d
move stuff
antonpirker 20c5343
tests
antonpirker c31d4a4
Better output
antonpirker 5aa3089
a working test
antonpirker 4ef332f
another test
antonpirker abe5d05
another test
antonpirker 3a2230d
Setting span origin
antonpirker 90d2cb4
Setting span origin
antonpirker 005e6d0
fixed tests
antonpirker c5dd40b
cleanup
antonpirker c6fcd9d
disable openai tracing because it emits a warning when no api_key is set
antonpirker 1a1aa26
updated test matrix
antonpirker e0fdbcf
cleanup
antonpirker ed4997b
linting
antonpirker 634ddce
linting
antonpirker 68cdbc4
improved check
antonpirker 82e8a02
better span origin
antonpirker 1aecf4f
linting
antonpirker b53d599
Merge branch 'master' into antonpirker/openai-agents-integration
antonpirker 66a2960
.
antonpirker 69cd9f3
proper classmethod patching
antonpirker 650ed23
Merge branch 'master' into antonpirker/openai-agents-integration
antonpirker a8c6415
better invocation spans
antonpirker 0f97113
proper invocation spans
antonpirker 99ccbee
cleanup
antonpirker 5c59668
Bring back handoff span
antonpirker 269802b
Bring back handoff span 2
antonpirker 3885fb4
Bring back invoke agent spans based on hooks.
antonpirker a2b4d81
explanation of defeat
antonpirker afe1a17
updated test matrix
antonpirker 43fffe7
linting
antonpirker 145653e
Updates for version 0.0.19
antonpirker 19c81f2
Better hooking into agent invokation
antonpirker 8b12801
Typing
antonpirker d7198e2
Fixed handoff spans
antonpirker 3f48a1c
tests for handoff span
antonpirker 6e7fbdd
Merge branch 'master' into antonpirker/openai-agents-integration
antonpirker cebe0f4
cleanup
antonpirker efe9e39
Apply suggestions from code review
antonpirker ff760d1
more resilient monkey patching
antonpirker 087bbeb
removed unused function
antonpirker b55c1ce
removed unused code
antonpirker 87adffd
comment
antonpirker c6e8230
made finishing spans more resilient
antonpirker f054a8f
better check
antonpirker b4f164e
Make sure to never send objects, but rather strings
antonpirker fbd23c2
typing
antonpirker 7b27d22
Merge branch 'master' into antonpirker/openai-agents-integration
antonpirker c4bfd0b
merge stuff
antonpirker 4e4f39c
update test matrix
antonpirker 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
Fixed handoff spans
- Loading branch information
commit d7198e2f5bf9332f196b5dffbe3a8c840b814e93
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
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.