From f9dac4ce7ff6adbf2c82d2aee3d3f4c1c87fa57a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 7 May 2026 18:08:14 +0800 Subject: [PATCH] fix: add user_id parameter to reason_and_execute method - The method signature was missing user_id, causing TypeError when passed from hermes_reason_and_execute --- harnessed_reasoning/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/harnessed_reasoning/core.py b/harnessed_reasoning/core.py index 49d5e59..5d3c3cf 100644 --- a/harnessed_reasoning/core.py +++ b/harnessed_reasoning/core.py @@ -409,7 +409,8 @@ class HermesReasoningEngine: # -------------------------------------------------------- async def reason_and_execute(self, request: str, - execute_immediately: bool = True) -> Dict[str, Any]: + execute_immediately: bool = True, + user_id: str = None) -> Dict[str, Any]: """ Main entry: reason about a request and optionally execute the plan.