kaxil commented on code in PR #73957:
URL: https://github.com/apache/airflow/pull/73957#discussion_r4153396595


##########
providers/common/ai/src/airflow/providers/common/ai/utils/toolset_base.py:
##########
@@ -181,6 +188,18 @@ async def call_tool(
             name, self.execute_tool(name, tool_args, ctx=ctx, tool=tool), 
count_as=type(self).__name__
         )
 
+    #: A subclass that takes ``max_retries`` stores it here; ``None`` follows 
the run.

Review Comment:
   Done in 6a861d67db9: plain comment, and renamed to `_get_tool_max_retries` 
at all call sites.



##########
providers/common/ai/src/airflow/providers/common/ai/utils/toolset_base.py:
##########
@@ -181,6 +188,18 @@ async def call_tool(
             name, self.execute_tool(name, tool_args, ctx=ctx, tool=tool), 
count_as=type(self).__name__
         )
 
+    #: A subclass that takes ``max_retries`` stores it here; ``None`` follows 
the run.
+    _max_retries: int | None = None
+
+    def _tool_max_retries(self, ctx: RunContext[Any]) -> int:

Review Comment:
   Done in 6a861d67db9: plain comment, and renamed to `_get_tool_max_retries` 
at all call sites.



-- 
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]

Reply via email to