From aca98b1b4e4742e25ec82ee0a5ae58c334ed9e09 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Wed, 6 Nov 2024 22:39:33 -0800 Subject: [PATCH] fix: move composio import to not require (#2006) --- letta/schemas/tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/schemas/tool.py b/letta/schemas/tool.py index f98ef813..f807e394 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)