Skip to content

Commit

Permalink
fix: patch typing error on heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker committed Sep 14, 2024
1 parent 22ccd3d commit 2c88853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memgpt/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)
Expand Down

0 comments on commit 2c88853

Please sign in to comment.