Skip to content

Commit 02210fa

Browse files
ci(openai-agents): Bump version for type checking to 0.23.1 (#7935)
openai/openai-agents-python@5237420 added `__setattr__` to `AgentBase`.
1 parent fcccb7b commit 02210fa

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎sentry_sdk/integrations/openai_agents/patches/agent_run.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _maybe_start_agent_span(
7777
context_wrapper._sentry_current_agent = agent # type: ignore[attr-defined]
7878
span = invoke_agent_span(context_wrapper, agent, span_kwargs)
7979
context_wrapper._sentry_agent_span = span # type: ignore[attr-defined]
80-
agent._sentry_agent_span = span # type: ignore[attr-defined]
80+
agent._sentry_agent_span = span
8181

8282
if not is_streaming:
8383
return span

‎sentry_sdk/integrations/openai_agents/patches/models.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _get_model(
7373

7474
# Capture the request model name for spans (agent.model can be None when using defaults)
7575
request_model_name = model.model if hasattr(model, "model") else str(model)
76-
agent._sentry_request_model = request_model_name # type: ignore[attr-defined]
76+
agent._sentry_request_model = request_model_name
7777

7878
# Wrap _fetch_response if it exists (for OpenAI models) to capture response model
7979
if hasattr(model, "_fetch_response"):
@@ -83,7 +83,7 @@ def _get_model(
8383
async def wrapped_fetch_response(*args: "Any", **kwargs: "Any") -> "Any":
8484
response = await original_fetch_response(*args, **kwargs)
8585
if hasattr(response, "model") and response.model:
86-
agent._sentry_response_model = str(response.model) # type: ignore[attr-defined]
86+
agent._sentry_response_model = str(response.model)
8787
return response
8888

8989
model._fetch_response = wrapped_fetch_response

‎uv.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)