Skip to content

Commit 443b2b6

Browse files
committed
Fix check
1 parent 7ceaa0b commit 443b2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporalio/contrib/openai_agents/_openai_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def run(
4646

4747
tool_types = typing.get_args(Tool)
4848
for t in starting_agent.tools:
49-
if isinstance(t, tool_types):
49+
if not isinstance(t, tool_types):
5050
raise ValueError(
5151
"Provided tool is not a tool type. If using an activity, make sure to wrap it with openai_agents.workflow.activity_as_tool."
5252
)

0 commit comments

Comments
 (0)