From 5b2b436fab3f23649ba4addc8afd3a941234c4f6 Mon Sep 17 00:00:00 2001 From: Ankit Arya <53930292+ankitarya1019@users.noreply.github.com> Date: Mon, 22 May 2023 13:26:25 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20import=20error=20for=20AutoGPT=20e.g.?= =?UTF-8?q?=20from=20langchain.experimental.auton=E2=80=A6=20(#5101)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `from langchain.experimental.autonomous_agents.autogpt.agent import AutoGPT` results in an import error as AutoGPT is not defined in the __init__.py file https://python.langchain.com/en/latest/use_cases/autonomous_agents/marathon_times.html An Alternate, way would be to be directly update the import statement to be `from langchain.experimental import AutoGPT` Co-authored-by: Dev 2049 --- langchain/experimental/autonomous_agents/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/langchain/experimental/autonomous_agents/__init__.py b/langchain/experimental/autonomous_agents/__init__.py index 653100de..867cbac8 100644 --- a/langchain/experimental/autonomous_agents/__init__.py +++ b/langchain/experimental/autonomous_agents/__init__.py @@ -1,3 +1,4 @@ +from langchain.experimental.autonomous_agents.autogpt.agent import AutoGPT from langchain.experimental.autonomous_agents.baby_agi.baby_agi import BabyAGI -__all__ = ["BabyAGI"] +__all__ = ["BabyAGI", "AutoGPT"]