Skip to content

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

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
09425e6
Barebone of new integration
antonpirker Jun 2, 2025
03f7e24
Creating some spans
antonpirker Jun 3, 2025
b24fe91
Removed traceprovider. the hooks work great
antonpirker Jun 3, 2025
2558fd1
cleanup
antonpirker Jun 3, 2025
5ce67e7
use scopes, that what they are meant for.
antonpirker Jun 3, 2025
55f3ea8
Cleanup
antonpirker Jun 3, 2025
0385775
Create transaction for runner.run
antonpirker Jun 3, 2025
2f38a88
Enable our RunHooks automatically
antonpirker Jun 3, 2025
4f25c2e
cleanup
antonpirker Jun 3, 2025
22ed21c
Better naming
antonpirker Jun 4, 2025
be37679
organized code
antonpirker Jun 4, 2025
1a72a92
Set some common data
antonpirker Jun 4, 2025
f28fc61
work on tool span
antonpirker Jun 4, 2025
2e24997
organize code
antonpirker Jun 4, 2025
bba3ef2
organize code
antonpirker Jun 4, 2025
cf06427
organize code
antonpirker Jun 4, 2025
d9acb1e
organize code and set operation name
antonpirker Jun 4, 2025
87f6562
set gen_ai.system
antonpirker Jun 4, 2025
c8a89db
ai client spans
antonpirker Jun 5, 2025
1f21a3b
Added token usage to ai client spans
antonpirker Jun 5, 2025
1e24c10
refactoring
antonpirker Jun 5, 2025
a1763ec
refacotring
antonpirker Jun 5, 2025
5d392f6
order
antonpirker Jun 5, 2025
e7710bc
order
antonpirker Jun 5, 2025
990fae0
better ai client spans
antonpirker Jun 6, 2025
1ac4337
cleanup
antonpirker Jun 6, 2025
08c47e5
moving stuff around
antonpirker Jun 6, 2025
6db1476
moving stuff around
antonpirker Jun 6, 2025
5ca575c
some consistency
antonpirker Jun 6, 2025
c6dbe47
Tool input and output
antonpirker Jun 6, 2025
fd028ef
removed debug output
antonpirker Jun 6, 2025
18f3b41
Using deprecated attr names to make ui work
antonpirker Jun 11, 2025
d64a1de
Updated prompt messages format.
antonpirker Jun 12, 2025
8c7a3dc
better input and output for ai client span
antonpirker Jun 12, 2025
c41a63b
renamed some attributes
antonpirker Jun 13, 2025
2e53aa7
Add available tools to client span
antonpirker Jun 13, 2025
5331ace
add it everywhere where an agent is available
antonpirker Jun 13, 2025
cd1f4ee
made tool_calls array of object
antonpirker Jun 16, 2025
c9b06e4
cleanup
antonpirker Jun 16, 2025
0942b56
cleanup
antonpirker Jun 16, 2025
92f015d
cleanup
antonpirker Jun 16, 2025
78064e7
cleanup
antonpirker Jun 16, 2025
e79d3c7
handle pii
antonpirker Jun 16, 2025
cead2b0
Merge branch 'master' into antonpirker/openai-agents-integration
antonpirker Jun 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest"
- name: Test openai_agents latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents-latest"
- name: Test huggingface_hub latest
run: |
set -x # print commands that are executed
Expand Down Expand Up @@ -141,6 +145,10 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai"
- name: Test openai_agents pinned
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai_agents"
- name: Test huggingface_hub pinned
run: |
set -x # print commands that are executed
Expand Down
3 changes: 3 additions & 0 deletions scripts/populate_tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@
"loguru": {
"package": "loguru",
},
"openai_agents": {
"package": "openai-agents",
},
"openfeature": {
"package": "openfeature-sdk",
},
Expand Down
1 change: 1 addition & 0 deletions scripts/populate_tox/tox.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ setenv =
litestar: TESTPATH=tests/integrations/litestar
loguru: TESTPATH=tests/integrations/loguru
openai: TESTPATH=tests/integrations/openai
openai_agents: TESTPATH=tests/integrations/openai_agents
openfeature: TESTPATH=tests/integrations/openfeature
opentelemetry: TESTPATH=tests/integrations/opentelemetry
potel: TESTPATH=tests/integrations/opentelemetry
Expand Down
1 change: 1 addition & 0 deletions scripts/split_tox_gh_actions/split_tox_gh_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"cohere",
"langchain",
"openai",
"openai_agents",
"huggingface_hub",
],
"Cloud": [
Expand Down
Loading
Loading