Skip to content

Commit 68cdbc4

Browse files
committed
improved check
1 parent 634ddce commit 68cdbc4

File tree

1 file changed

+1
-1
lines changed
  • sentry_sdk/integrations/openai_agents/patches

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/openai_agents/patches/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def wrapped_get_all_tools(cls, agent, context_wrapper):
3232
wrapped_tools = []
3333
for tool in tools:
3434
# Wrap only the function tools (for now)
35-
if not isinstance(tool, agents.Tool):
35+
if tool.__class__.__name__ != "FunctionTool":
3636
wrapped_tools.append(tool)
3737
continue
3838

0 commit comments

Comments
 (0)