Skip to content

Commit 466dec5

Browse files
Merge branch 'webb/openai-agents-new-patches' into webb/update-tox-openai-agents
2 parents cb3066f + c7ee495 commit 466dec5

File tree

6 files changed

+54
-447
lines changed

6 files changed

+54
-447
lines changed

sentry_sdk/integrations/openai_agents/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _patch_agent_runner_get_model() -> None:
4848
)
4949

5050

51-
def _patch_run_internal_get_model():
51+
def _patch_run_internal_get_model() -> None:
5252
agents.run_internal.run_loop.get_model = _create_run_internal_get_model_wrapper(
5353
turn_preparation.get_model
5454
)
@@ -83,7 +83,8 @@ def setup_once() -> None:
8383
agents.run.DEFAULT_AGENT_RUNNER.run_streamed
8484
)
8585

86-
if parse_version(OPENAI_AGENTS_VERSION) >= (
86+
library_version = parse_version(OPENAI_AGENTS_VERSION)
87+
if library_version is not None and library_version >= (
8788
0,
8889
8,
8990
):

sentry_sdk/integrations/openai_agents/patches/_agent_run.py

Lines changed: 0 additions & 251 deletions
This file was deleted.

0 commit comments

Comments
 (0)