From 8815aa95ba770110e9d6a4839fb7f9cef01ef4d7 Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Thu, 21 Mar 2024 00:33:22 -0500 Subject: [PATCH] make sure the agent interface adjustment works for langchain_agent --- agenthub/langchains_agent/__init__.py | 3 +++ agenthub/langchains_agent/requirements.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/agenthub/langchains_agent/__init__.py b/agenthub/langchains_agent/__init__.py index aa72d803517d..cc48f550d373 100644 --- a/agenthub/langchains_agent/__init__.py +++ b/agenthub/langchains_agent/__init__.py @@ -69,6 +69,9 @@ def run(self) -> None: Starts the execution of the assigned instruction. This method should be implemented by subclasses to define the specific execution logic. """ + print("Working in directory:", self.workspace_dir) + os.chdir(self.workspace_dir) + agent = LangchainsAgentImpl(self.instruction) next_is_output = False for thought in INITIAL_THOUGHTS: diff --git a/agenthub/langchains_agent/requirements.txt b/agenthub/langchains_agent/requirements.txt index 48755f89b969..b2dcf5377cb5 100644 --- a/agenthub/langchains_agent/requirements.txt +++ b/agenthub/langchains_agent/requirements.txt @@ -4,3 +4,5 @@ langchain-community llama-index llama-index-vector-stores-chroma chromadb +litellm +termcolor