Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: add vertex async loop feature flag (#2060)

cthomas5c0bb5e4dd6a
diff --git a/letta/functions/async_composio_toolset.py b/letta/functions/async_composio_toolset.py
index 5ebd385f8..f240721e0 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 a3149ac9b..81551bacb 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