gopidesupavan commented on code in PR #67438:
URL: https://github.com/apache/airflow/pull/67438#discussion_r3365528014


##########
providers/common/ai/src/airflow/providers/common/ai/toolsets/langchain_bridge.py:
##########
@@ -170,3 +177,34 @@ async def _async_call(**kwargs: Any) -> Any:
         description=tool_def.description or name,
         args_schema=tool_def.parameters_json_schema,
     )
+
+
+def _build_structured_tool_from_spec(
+    spec: ToolSpec,
+    structured_tool_cls: type[StructuredTool],
+) -> StructuredTool:
+    """Build a single LangChain ``StructuredTool`` from an Airflow 
``ToolSpec``."""
+
+    def _sync_call(**kwargs: Any) -> Any:
+        try:
+            if asyncio.iscoroutinefunction(spec.fn):

Review Comment:
   updated 
https://github.com/apache/airflow/pull/67438/commits/ef635276913329a4f60a6e61d53411a81016ce0d



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