From 2c888531f4f81c9eb1698902e95ba9858978f11b Mon Sep 17 00:00:00 2001 From: cpacker Date: Fri, 13 Sep 2024 17:05:06 -0700 Subject: [PATCH] fix: patch typing error on heartbeat --- memgpt/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memgpt/agent.py b/memgpt/agent.py index 63c85d95b9..9be5e198f4 100644 --- a/memgpt/agent.py +++ b/memgpt/agent.py @@ -607,7 +607,7 @@ def _handle_ai_response( # (Still parsing function args) # Handle requests for immediate heartbeat heartbeat_request = function_args.pop("request_heartbeat", None) - if not (isinstance(heartbeat_request, bool) or heartbeat_request is None): + if not isinstance(heartbeat_request, bool) or heartbeat_request is None: printd( f"{CLI_WARNING_PREFIX}'request_heartbeat' arg parsed was not a bool or None, type={type(heartbeat_request)}, value={heartbeat_request}" )