diff --git a/src/backend/langflow/interface/agents/custom.py b/src/backend/langflow/interface/agents/custom.py index 851bd2af8..27159d22a 100644 --- a/src/backend/langflow/interface/agents/custom.py +++ b/src/backend/langflow/interface/agents/custom.py @@ -274,7 +274,11 @@ class InitializeAgent(AgentExecutor): @classmethod def initialize( - cls, llm: BaseLLM, tools: List[Tool], agent: str, memory: BaseChatMemory + cls, + llm: BaseLLM, + tools: List[Tool], + agent: str, + memory: Optional[BaseChatMemory] = None, ): return initialize_agent( tools=tools,