Skip to content

Commit 2decf06

Browse files
committed
Fix util reference in tools.py
1 parent 916dac7 commit 2decf06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents_mcp/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from typing import Any, Union
44

5-
from agents import _utils
65
from agents.run_context import RunContextWrapper, TContext
76
from agents.tool import FunctionTool, Tool
7+
from agents.util import _transforms
88
from mcp.types import EmbeddedResource, ImageContent, TextContent
99

1010
from .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):

0 commit comments

Comments
 (0)