fix: remove unused param in agent instantiation (#938)

This commit is contained in:
tombedor
2024-01-29 17:37:59 -08:00
committed by GitHub
parent 5d53e77d4d
commit ff692fe7ab

View File

@@ -172,7 +172,6 @@ class Agent(object):
# extras
messages_total: Optional[int] = None, # TODO remove?
first_message_verify_mono: bool = True, # TODO move to config?
memgpt_config: Optional[MemGPTConfig] = None,
):
# Hold a copy of the state that was used to init the agent
self.agent_state = agent_state
@@ -224,15 +223,6 @@ class Agent(object):
# When the summarizer is run, set this back to False (to reset)
self.agent_alerted_about_memory_pressure = False
# Read local config if not provided
if not memgpt_config:
self.memgpt_config = MemGPTConfig()
else:
self.memgpt_config = memgpt_config
# Initialize connection to metedata store
# self.ms = MetadataStore(self.memgpt_config)
self._messages: List[Message] = []
# Once the memory object is initialized, use it to "bake" the system message