From 46148bfe833782e7ee1129e95ab922d286e82a39 Mon Sep 17 00:00:00 2001 From: anigasan Date: Mon, 7 Jul 2025 12:39:33 -0700 Subject: [PATCH] made changes to tavily_search, simplified config logic --- .../remote/tool_runtime/tavily_search/tavily_search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py b/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py index 1fe91fd7f..5158f4d40 100644 --- a/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py +++ b/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py @@ -69,7 +69,10 @@ class TavilySearchToolRuntimeImpl(ToolGroupsProtocolPrivate, ToolRuntime, NeedsR async def invoke_tool(self, tool_name: str, kwargs: dict[str, Any]) -> ToolInvocationResult: api_key = self._get_api_key() - async with httpx.AsyncClient() as client: + + timeout = httpx.Timeout(timeout=self.config.timeout) + + async with httpx.AsyncClient(timeout=timeout) as client: response = await client.post( "https://api.tavily.com/search", json={"api_key": api_key, "query": kwargs["query"]},