Skip to content
Merged
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
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/openai_agents/patches/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

try:
import agents
from agents import FunctionTool
except ImportError:
raise DidNotEnable("OpenAI Agents not installed")

Expand All @@ -33,7 +34,7 @@ async def _get_all_tools(
wrapped_tools = []
for tool in tools:
# Wrap only the function tools (for now)
if tool.__class__.__name__ != "FunctionTool":
if not isinstance(tool, FunctionTool):
wrapped_tools.append(tool)
continue

Expand Down
Loading