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: 0 additions & 1 deletion scripts/populate_tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@
"*": ["pytest-asyncio"],
},
"python": ">=3.10",
"include": "!=0.6.0,!=0.6.1",
},
"openfeature": {
"package": "openfeature-sdk",
Expand Down
2 changes: 1 addition & 1 deletion scripts/populate_tox/package_dependencies.jsonl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/populate_tox/releases.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
{"info": {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed"], "name": "openai-agents", "requires_python": ">=3.9", "version": "0.0.19", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openai_agents-0.0.19-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openai_agents-0.0.19.tar.gz"}]}
{"info": {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed"], "name": "openai-agents", "requires_python": ">=3.9", "version": "0.2.11", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openai_agents-0.2.11-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openai_agents-0.2.11.tar.gz"}]}
{"info": {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed"], "name": "openai-agents", "requires_python": ">=3.9", "version": "0.4.2", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openai_agents-0.4.2-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openai_agents-0.4.2.tar.gz"}]}
{"info": {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed"], "name": "openai-agents", "requires_python": ">=3.9", "version": "0.5.1", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openai_agents-0.5.1-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openai_agents-0.5.1.tar.gz"}]}
{"info": {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed"], "name": "openai-agents", "requires_python": ">=3.9", "version": "0.6.1", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openai_agents-0.6.1-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openai_agents-0.6.1.tar.gz"}]}
{"info": {"classifiers": ["License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3"], "name": "openfeature-sdk", "requires_python": ">=3.8", "version": "0.7.5", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openfeature_sdk-0.7.5-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openfeature_sdk-0.7.5.tar.gz"}]}
{"info": {"classifiers": ["License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3"], "name": "openfeature-sdk", "requires_python": ">=3.9", "version": "0.8.3", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "openfeature_sdk-0.8.3-py3-none-any.whl"}, {"packagetype": "sdist", "filename": "openfeature_sdk-0.8.3.tar.gz"}]}
{"info": {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Rust", "Typing :: Typed"], "name": "orjson", "requires_python": ">=3.9", "version": "3.11.4", "yanked": false}, "urls": [{"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-musllinux_1_2_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-musllinux_1_2_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-musllinux_1_2_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-musllinux_1_2_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-win32.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp310-cp310-win_amd64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-macosx_15_0_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-musllinux_1_2_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-musllinux_1_2_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-musllinux_1_2_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-musllinux_1_2_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-win32.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-win_amd64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp311-cp311-win_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-macosx_15_0_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-musllinux_1_2_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-musllinux_1_2_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-musllinux_1_2_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-musllinux_1_2_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-win32.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-win_amd64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp312-cp312-win_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-macosx_15_0_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-musllinux_1_2_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-musllinux_1_2_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-musllinux_1_2_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-musllinux_1_2_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-win32.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-win_amd64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp313-cp313-win_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-macosx_15_0_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-musllinux_1_2_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-musllinux_1_2_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-musllinux_1_2_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-musllinux_1_2_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-win32.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-win_amd64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp314-cp314-win_arm64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-musllinux_1_2_aarch64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-musllinux_1_2_armv7l.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-musllinux_1_2_i686.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-musllinux_1_2_x86_64.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-win32.whl"}, {"packagetype": "bdist_wheel", "filename": "orjson-3.11.4-cp39-cp39-win_amd64.whl"}, {"packagetype": "sdist", "filename": "orjson-3.11.4.tar.gz"}]}
Expand Down
23 changes: 2 additions & 21 deletions tests/integrations/openai_agents/test_openai_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ async def test_handoff_span(sentry_init, capture_events, mock_usage):
name="transfer_to_secondary_agent",
type="function_call",
arguments="{}",
function=MagicMock(
name="transfer_to_secondary_agent", arguments="{}"
),
)
],
usage=mock_usage,
Expand Down Expand Up @@ -377,9 +374,6 @@ def simple_test_tool(message: str) -> str:
name="simple_test_tool",
type="function_call",
arguments='{"message": "hello"}',
function=MagicMock(
name="simple_test_tool", arguments='{"message": "hello"}'
),
)

# First response with tool call
Expand Down Expand Up @@ -507,11 +501,7 @@ def simple_test_tool(message: str) -> str:
assert ai_client_span1["data"]["gen_ai.usage.output_tokens"] == 5
assert ai_client_span1["data"]["gen_ai.usage.output_tokens.reasoning"] == 0
assert ai_client_span1["data"]["gen_ai.usage.total_tokens"] == 15
assert re.sub(
r"SerializationIterator\(.*\)",
"NOT_CHECKED",
ai_client_span1["data"]["gen_ai.response.tool_calls"],
) == safe_serialize(
assert ai_client_span1["data"]["gen_ai.response.tool_calls"] == safe_serialize(
[
{
"arguments": '{"message": "hello"}',
Expand All @@ -520,7 +510,6 @@ def simple_test_tool(message: str) -> str:
"type": "function_call",
"id": "call_123",
"status": None,
"function": "NOT_CHECKED",
}
]
)
Expand Down Expand Up @@ -559,11 +548,7 @@ def simple_test_tool(message: str) -> str:
== available_tools
)
assert ai_client_span2["data"]["gen_ai.request.max_tokens"] == 100
assert re.sub(
r"SerializationIterator\(.*\)",
"NOT_CHECKED",
ai_client_span2["data"]["gen_ai.request.messages"],
) == safe_serialize(
assert ai_client_span2["data"]["gen_ai.request.messages"] == safe_serialize(
[
{
"role": "system",
Expand All @@ -586,7 +571,6 @@ def simple_test_tool(message: str) -> str:
"name": "simple_test_tool",
"type": "function_call",
"id": "call_123",
"function": "NOT_CHECKED",
}
],
},
Expand Down Expand Up @@ -1165,9 +1149,6 @@ def failing_tool(message: str) -> str:
name="failing_tool",
type="function_call",
arguments='{"message": "test"}',
function=MagicMock(
name="failing_tool", arguments='{"message": "test"}'
),
)

# First response with tool call
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ envlist =
{py3.10,py3.11,py3.12}-openai_agents-v0.0.19
{py3.10,py3.12,py3.13}-openai_agents-v0.2.11
{py3.10,py3.12,py3.13}-openai_agents-v0.4.2
{py3.10,py3.13,py3.14,py3.14t}-openai_agents-v0.5.1
{py3.10,py3.13,py3.14,py3.14t}-openai_agents-v0.6.1

{py3.10,py3.12,py3.13}-pydantic_ai-v1.0.18
{py3.10,py3.12,py3.13}-pydantic_ai-v1.7.0
Expand Down Expand Up @@ -453,7 +453,7 @@ deps =
openai_agents-v0.0.19: openai-agents==0.0.19
openai_agents-v0.2.11: openai-agents==0.2.11
openai_agents-v0.4.2: openai-agents==0.4.2
openai_agents-v0.5.1: openai-agents==0.5.1
openai_agents-v0.6.1: openai-agents==0.6.1
openai_agents: pytest-asyncio

pydantic_ai-v1.0.18: pydantic-ai==1.0.18
Expand Down