From 601ec86273355e56e5938b0883fee2d624cb6741 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 25 Apr 2023 11:15:17 -0300 Subject: [PATCH] style(langflow): fix formatting and add type hinting to custom.py and run.py files --- src/backend/langflow/interface/agents/custom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,