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.

fix: move composio import to not require (#2006)

Sarah Woodersaca98b1b4e47
diff --git a/letta/schemas/tool.py b/letta/schemas/tool.py
index f98ef8133..f807e3949 100644
--- a/letta/schemas/tool.py
+++ b/letta/schemas/tool.py
@@ -1,6 +1,5 @@
from typing import Dict, List, Optional
-from composio import LogLevel
from pydantic import Field
from letta.functions.helpers import (
@@ -86,6 +85,7 @@ class ToolCreate(LettaBase):
Returns:
Tool: A Letta Tool initialized with attributes derived from the Composio tool.
"""
+ from composio import LogLevel
from composio_langchain import ComposioToolSet
composio_toolset = ComposioToolSet(logging_level=LogLevel.ERROR)