File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22
33from typing import Any , Union
44
5- from agents import _utils
65from agents .run_context import RunContextWrapper , TContext
76from agents .tool import FunctionTool , Tool
7+ from agents .util import _transforms
88from mcp .types import EmbeddedResource , ImageContent , TextContent
99
1010from .logger import logger
@@ -142,7 +142,7 @@ def mcp_tool_to_function_tool(mcp_tool: Any, server_aggregator: Any) -> Function
142142 Convert an MCP tool to an OpenAI Agent SDK function tool.
143143 """
144144 # Create a properly named wrapper function
145- function_name = _utils .transform_string_function_style (mcp_tool .name )
145+ function_name = _transforms .transform_string_function_style (mcp_tool .name )
146146
147147 # Create a wrapper factory to ensure each tool gets its own closure
148148 def create_wrapper (current_tool_name : str , current_tool_desc : str ):
You can’t perform that action at this time.
0 commit comments