Skip to content

Commit

Permalink
make sure the agent interface adjustment works for langchain_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Mar 21, 2024
1 parent 6ebffca commit 8815aa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agenthub/langchains_agent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions agenthub/langchains_agent/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ langchain-community
llama-index
llama-index-vector-stores-chroma
chromadb
litellm
termcolor

0 comments on commit 8815aa9

Please sign in to comment.