Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions scripts/populate_tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"deps": {
"*": ["pytest-asyncio"],
},
"python": ">=3.10",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not 3.9? (the lib supports it according to pypi)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See PR description

(...) restricts openai-agents tests to 3.10 as in 0.2.x they're using 3.10+ typing syntax ( | )

},
"openfeature": {
"package": "openfeature-sdk",
Expand Down
9 changes: 7 additions & 2 deletions tests/integrations/openai_agents/test_openai_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
ResponseFunctionToolCall,
)

from openai.types.responses.response_usage import (
InputTokensDetails,
OutputTokensDetails,
)

test_run_config = agents.RunConfig(tracing_disabled=True)


Expand All @@ -29,8 +34,8 @@ def mock_usage():
input_tokens=10,
output_tokens=20,
total_tokens=30,
input_tokens_details=MagicMock(cached_tokens=0),
output_tokens_details=MagicMock(reasoning_tokens=5),
input_tokens_details=InputTokensDetails(cached_tokens=0),
output_tokens_details=OutputTokensDetails(reasoning_tokens=5),
)


Expand Down
50 changes: 27 additions & 23 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# The file (and all resulting CI YAMLs) then need to be regenerated via
# "scripts/generate-test-files.sh".
#
# Last generated: 2025-07-15T08:21:43.713048+00:00
# Last generated: 2025-07-23T07:24:30.467173+00:00

[tox]
requires =
Expand Down Expand Up @@ -138,15 +138,16 @@ envlist =
{py3.8,py3.11,py3.12}-anthropic-v0.16.0
{py3.8,py3.11,py3.12}-anthropic-v0.30.1
{py3.8,py3.11,py3.12}-anthropic-v0.44.0
{py3.8,py3.11,py3.12}-anthropic-v0.57.1
{py3.8,py3.12,py3.13}-anthropic-v0.58.2

{py3.9,py3.10,py3.11}-cohere-v5.4.0
{py3.9,py3.11,py3.12}-cohere-v5.9.4
{py3.9,py3.11,py3.12}-cohere-v5.13.12
{py3.9,py3.11,py3.12}-cohere-v5.16.1

{py3.9,py3.11,py3.12}-openai_agents-v0.0.19
{py3.9,py3.12,py3.13}-openai_agents-v0.1.0
{py3.10,py3.11,py3.12}-openai_agents-v0.0.19
{py3.10,py3.12,py3.13}-openai_agents-v0.1.0
{py3.10,py3.12,py3.13}-openai_agents-v0.2.3

{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
{py3.8,py3.11,py3.12}-huggingface_hub-v0.26.5
Expand Down Expand Up @@ -181,9 +182,9 @@ envlist =
{py3.9,py3.12,py3.13}-openfeature-v0.8.1

{py3.7,py3.12,py3.13}-statsig-v0.55.3
{py3.7,py3.12,py3.13}-statsig-v0.56.0
{py3.7,py3.12,py3.13}-statsig-v0.57.3
{py3.7,py3.12,py3.13}-statsig-v0.59.0
{py3.7,py3.12,py3.13}-statsig-v0.59.1
{py3.7,py3.12,py3.13}-statsig-v0.60.0

{py3.8,py3.12,py3.13}-unleash-v6.0.1
{py3.8,py3.12,py3.13}-unleash-v6.1.0
Expand All @@ -205,9 +206,9 @@ envlist =
{py3.8,py3.12,py3.13}-graphene-v3.4.3

{py3.8,py3.10,py3.11}-strawberry-v0.209.8
{py3.8,py3.11,py3.12}-strawberry-v0.231.1
{py3.8,py3.12,py3.13}-strawberry-v0.253.1
{py3.9,py3.12,py3.13}-strawberry-v0.276.0
{py3.8,py3.11,py3.12}-strawberry-v0.232.2
{py3.8,py3.12,py3.13}-strawberry-v0.255.0
{py3.9,py3.12,py3.13}-strawberry-v0.278.0


# ~~~ Network ~~~
Expand Down Expand Up @@ -254,7 +255,7 @@ envlist =
{py3.6,py3.9,py3.10}-starlette-v0.16.0
{py3.7,py3.10,py3.11}-starlette-v0.26.1
{py3.8,py3.11,py3.12}-starlette-v0.36.3
{py3.9,py3.12,py3.13}-starlette-v0.47.1
{py3.9,py3.12,py3.13}-starlette-v0.47.2

{py3.6,py3.9,py3.10}-fastapi-v0.79.1
{py3.7,py3.10,py3.11}-fastapi-v0.91.0
Expand All @@ -275,6 +276,7 @@ envlist =
{py3.6,py3.7}-falcon-v2.0.0
{py3.6,py3.11,py3.12}-falcon-v3.1.3
{py3.8,py3.11,py3.12}-falcon-v4.0.2
{py3.8,py3.11,py3.12}-falcon-v4.1.0a3

{py3.8,py3.10,py3.11}-litestar-v2.0.1
{py3.8,py3.11,py3.12}-litestar-v2.5.5
Expand Down Expand Up @@ -303,8 +305,8 @@ envlist =
{py3.6}-trytond-v4.8.18
{py3.6,py3.7,py3.8}-trytond-v5.8.16
{py3.8,py3.10,py3.11}-trytond-v6.8.17
{py3.8,py3.11,py3.12}-trytond-v7.0.33
{py3.9,py3.12,py3.13}-trytond-v7.6.3
{py3.8,py3.11,py3.12}-trytond-v7.0.34
{py3.9,py3.12,py3.13}-trytond-v7.6.4

{py3.7,py3.12,py3.13}-typer-v0.15.4
{py3.7,py3.12,py3.13}-typer-v0.16.0
Expand Down Expand Up @@ -510,7 +512,7 @@ deps =
anthropic-v0.16.0: anthropic==0.16.0
anthropic-v0.30.1: anthropic==0.30.1
anthropic-v0.44.0: anthropic==0.44.0
anthropic-v0.57.1: anthropic==0.57.1
anthropic-v0.58.2: anthropic==0.58.2
anthropic: pytest-asyncio
anthropic-v0.16.0: httpx<0.28.0
anthropic-v0.30.1: httpx<0.28.0
Expand All @@ -523,6 +525,7 @@ deps =

openai_agents-v0.0.19: openai-agents==0.0.19
openai_agents-v0.1.0: openai-agents==0.1.0
openai_agents-v0.2.3: openai-agents==0.2.3
openai_agents: pytest-asyncio

huggingface_hub-v0.22.2: huggingface_hub==0.22.2
Expand Down Expand Up @@ -559,9 +562,9 @@ deps =
openfeature-v0.8.1: openfeature-sdk==0.8.1

statsig-v0.55.3: statsig==0.55.3
statsig-v0.56.0: statsig==0.56.0
statsig-v0.57.3: statsig==0.57.3
statsig-v0.59.0: statsig==0.59.0
statsig-v0.59.1: statsig==0.59.1
statsig-v0.60.0: statsig==0.60.0
statsig: typing_extensions

unleash-v6.0.1: UnleashClient==6.0.1
Expand Down Expand Up @@ -592,13 +595,13 @@ deps =
py3.6-graphene: aiocontextvars

strawberry-v0.209.8: strawberry-graphql[fastapi,flask]==0.209.8
strawberry-v0.231.1: strawberry-graphql[fastapi,flask]==0.231.1
strawberry-v0.253.1: strawberry-graphql[fastapi,flask]==0.253.1
strawberry-v0.276.0: strawberry-graphql[fastapi,flask]==0.276.0
strawberry-v0.232.2: strawberry-graphql[fastapi,flask]==0.232.2
strawberry-v0.255.0: strawberry-graphql[fastapi,flask]==0.255.0
strawberry-v0.278.0: strawberry-graphql[fastapi,flask]==0.278.0
strawberry: httpx
strawberry-v0.209.8: pydantic<2.11
strawberry-v0.231.1: pydantic<2.11
strawberry-v0.253.1: pydantic<2.11
strawberry-v0.232.2: pydantic<2.11
strawberry-v0.255.0: pydantic<2.11


# ~~~ Network ~~~
Expand Down Expand Up @@ -678,7 +681,7 @@ deps =
starlette-v0.16.0: starlette==0.16.0
starlette-v0.26.1: starlette==0.26.1
starlette-v0.36.3: starlette==0.36.3
starlette-v0.47.1: starlette==0.47.1
starlette-v0.47.2: starlette==0.47.2
starlette: pytest-asyncio
starlette: python-multipart
starlette: requests
Expand Down Expand Up @@ -722,6 +725,7 @@ deps =
falcon-v2.0.0: falcon==2.0.0
falcon-v3.1.3: falcon==3.1.3
falcon-v4.0.2: falcon==4.0.2
falcon-v4.1.0a3: falcon==4.1.0a3

litestar-v2.0.1: litestar==2.0.1
litestar-v2.5.5: litestar==2.5.5
Expand Down Expand Up @@ -767,8 +771,8 @@ deps =
trytond-v4.8.18: trytond==4.8.18
trytond-v5.8.16: trytond==5.8.16
trytond-v6.8.17: trytond==6.8.17
trytond-v7.0.33: trytond==7.0.33
trytond-v7.6.3: trytond==7.6.3
trytond-v7.0.34: trytond==7.0.34
trytond-v7.6.4: trytond==7.6.4
trytond: werkzeug
trytond-v4.6.22: werkzeug<1.0
trytond-v4.8.18: werkzeug<1.0
Expand Down
Loading