Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Add missing import in functions.py (#2060)
Andrew Fitzcada5976dad2
diff --git a/letta/functions/functions.py b/letta/functions/functions.pyindex 0d4ba82af..6dabc2e03 100644--- a/letta/functions/functions.py+++ b/letta/functions/functions.py@@ -3,7 +3,7 @@ import inspectimport osfrom textwrap import dedent # remove indentationfrom types import ModuleType-from typing import Optional+from typing import Optional, Listfrom letta.constants import CLI_WARNING_PREFIXfrom letta.functions.schema_generator import generate_schema@@ -15,6 +15,7 @@ def derive_openai_json_schema(source_code: str, name: Optional[str] = None) -> d# Define a custom environment with necessary importsenv = {"Optional": Optional, # Add any other required imports here+ "List": List}env.update(globals())