From 5c0bb5e4dd6a92fbd42c657bf2061bcdc26501c1 Mon Sep 17 00:00:00 2001 From: cthomas Date: Wed, 7 May 2025 15:00:10 -0700 Subject: [PATCH] feat: add vertex async loop feature flag (#2060) --- letta/functions/async_composio_toolset.py | 2 +- letta/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/letta/functions/async_composio_toolset.py b/letta/functions/async_composio_toolset.py index 5ebd385f..f240721e 100644 --- a/letta/functions/async_composio_toolset.py +++ b/letta/functions/async_composio_toolset.py @@ -98,7 +98,7 @@ class AsyncComposioToolSet(BaseComposioToolSet, runtime="letta"): except aiohttp.ClientError as e: # Wrap network errors in ComposioSDKError raise ComposioSDKError(f"Network error when calling Composio API: {str(e)}") - except ValueError as e: + except ValueError: # Re-raise ValueError (which could be our custom error message or a JSON parsing error) raise except Exception as e: diff --git a/letta/settings.py b/letta/settings.py index a3149ac9..81551bac 100644 --- a/letta/settings.py +++ b/letta/settings.py @@ -196,6 +196,7 @@ class Settings(BaseSettings): # experimental toggle use_experimental: bool = False use_vertex_structured_outputs_experimental: bool = False + use_vertex_async_loop_experimental: bool = False # LLM provider client settings httpx_max_retries: int = 5