Skip to content

Commit 2b0485b

Browse files
committed
refactor: remove inherited method from Agent class
1 parent 7e632c2 commit 2b0485b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/agents/agent.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,6 @@ async def get_prompt(
290290
"""Get the prompt for the agent."""
291291
return await PromptUtil.to_model_input(self.prompt, run_context, self)
292292

293-
async def get_mcp_tools(self, run_context: RunContextWrapper[TContext]) -> list[Tool]:
294-
"""Fetches the available tools from the MCP servers."""
295-
convert_schemas_to_strict = self.mcp_config.get("convert_schemas_to_strict", False)
296-
return await MCPUtil.get_all_function_tools(
297-
self.mcp_servers, convert_schemas_to_strict, run_context, self
298-
)
299-
300293
async def get_all_tools(self, run_context: RunContextWrapper[Any]) -> list[Tool]:
301294
"""All agent tools, including MCP tools and function tools."""
302295
mcp_tools = await self.get_mcp_tools(run_context)

0 commit comments

Comments
 (0)