kaxil commented on code in PR #76015:
URL: https://github.com/apache/airflow/pull/76015#discussion_r4485836559
##########
providers/common/ai/src/airflow/providers/common/ai/durable/openai_agents.py:
##########
@@ -215,10 +220,11 @@ def _get_durable_agent(agent: Agent[Any], durable_run:
DurableRun, seen: dict[in
def _get_durable_tool(tool: Tool, durable_run: DurableRun) -> Tool:
# A tool whose approval depends on its arguments is left as it is: the SDK
checks that the
# arguments it approved are the ones the tool runs with only through its
own invoker.
- if not isinstance(tool, FunctionTool) or callable(tool.needs_approval):
+ if not (isinstance(tool, FunctionTool) and not
callable(tool.needs_approval)):
Review Comment:
Restored main's line in db3855980ad.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]