diff --git a/src/agents/deep_agent/graph.py b/src/agents/deep_agent/graph.py index b3b6af015..055d0c6ce 100644 --- a/src/agents/deep_agent/graph.py +++ b/src/agents/deep_agent/graph.py @@ -15,6 +15,8 @@ from src.services.mcp_service import get_tools_from_all_servers from .context import DeepContext +from .prompts import DEEP_PROMPT +from src.utils import logger def _create_fs_backend(rt): @@ -81,11 +83,14 @@ async def get_tools(self): if tavily_search: tools.append(tavily_search) - # Assert that search tool is available for DeepAgent - assert tools, ( - "DeepAgent requires at least one search tool. " - "Please configure TAVILY_API_KEY environment variable to enable web search." - ) + # # Assert that search tool is available for DeepAgent + # assert tools, ( + # "DeepAgent requires at least one search tool. " + # "Please configure TAVILY_API_KEY environment variable to enable web search." + # ) + if not tools: + logger.warning("No search tools configured, DeepAgent will work without web search") + tools = [] return tools async def get_graph(self, **kwargs):