Skip to content

Commit 916dac7

Browse files
committed
Fix agents sdk refactor for v0.0.5
1 parent 3de1fe2 commit 916dac7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async for event in result.stream_events():
255255
print(event.data.delta, end="", flush=True)
256256
```
257257

258-
See [hello_world_mcp_streamed.py](examples/mcp/basic/hello_world_streamed.py) for the complete example.
258+
See [hello_world_mcp_streamed.py](examples/hello_world_mcp_streamed.py) for the complete example.
259259

260260
## Acknowledgements
261261

src/agents_mcp/agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
from dataclasses import dataclass, field
55
from typing import TYPE_CHECKING, Callable, Generic
66

7-
from agents import Agent as BaseAgent, _utils
7+
from agents import Agent as BaseAgent
88
from agents.items import ItemHelpers
99
from agents.run_context import RunContextWrapper, TContext
1010
from agents.tool import Tool, function_tool
11+
from agents.util import _transforms
1112

1213
from .agent_hooks import MCPAgentHooks
1314
from .aggregator import initialize_mcp_aggregator
@@ -153,7 +154,7 @@ def as_tool(
153154
"""
154155

155156
@function_tool(
156-
name_override=tool_name or _utils.transform_string_function_style(self.name),
157+
name_override=tool_name or _transforms.transform_string_function_style(self.name),
157158
description_override=tool_description or "",
158159
)
159160
async def run_agent(context: RunContextWrapper, input: str) -> str:

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)