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
This commit is contained in:
yumoqing 2026-05-07 18:08:14 +08:00
parent 9ac531bdf0
commit f9dac4ce7f

View File

@ -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.