We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ceaa0b commit 443b2b6Copy full SHA for 443b2b6
temporalio/contrib/openai_agents/_openai_runner.py
@@ -46,7 +46,7 @@ async def run(
46
47
tool_types = typing.get_args(Tool)
48
for t in starting_agent.tools:
49
- if isinstance(t, tool_types):
+ if not isinstance(t, tool_types):
50
raise ValueError(
51
"Provided tool is not a tool type. If using an activity, make sure to wrap it with openai_agents.workflow.activity_as_tool."
52
)
0 commit comments