AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
AutoGPT: Fix context sharing between agent
Reinier van der Leerc8fbb5153a77
diff --git a/autogpts/autogpt/autogpt/agents/features/context.py b/autogpts/autogpt/autogpt/agents/features/context.pyindex b91b2a06e9..3e92c867c4 100644--- a/autogpts/autogpt/autogpt/agents/features/context.py+++ b/autogpts/autogpt/autogpt/agents/features/context.py@@ -14,8 +14,8 @@ from autogpt.core.resource.model_providers import ChatMessageclass AgentContext:items: list[ContextItem]- def __init__(self, items: list[ContextItem] = []):- self.items = items+ def __init__(self, items: Optional[list[ContextItem]] = None):+ self.items = items or []def __bool__(self) -> bool:return len(self.items) > 0