From 7ff06bd4552c1a4bd7ce444985e415c1163ff236 Mon Sep 17 00:00:00 2001 From: HamadaSalhab Date: Tue, 15 Oct 2024 18:21:34 +0300 Subject: [PATCH] Increase api_call tool timeout to 60s --- agents-api/agents_api/activities/excecute_api_call.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents-api/agents_api/activities/excecute_api_call.py b/agents-api/agents_api/activities/excecute_api_call.py index e7752aa06..c938a065c 100644 --- a/agents-api/agents_api/activities/excecute_api_call.py +++ b/agents-api/agents_api/activities/excecute_api_call.py @@ -31,7 +31,7 @@ async def execute_api_call( request_args: RequestArgs, ) -> Any: try: - async with httpx.AsyncClient() as client: + async with httpx.AsyncClient(timeout=60.0) as client: arg_url = request_args.pop("url", None) arg_headers = request_args.pop("headers", None)