From 013ff446e03db1a556dee2adf6cb58756b2048b9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 12 Jul 2025 21:21:09 +0800 Subject: [PATCH] fix --- python_core/utils/jsonrpc_enhanced.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_core/utils/jsonrpc_enhanced.py b/python_core/utils/jsonrpc_enhanced.py index 0087162..a90dd01 100644 --- a/python_core/utils/jsonrpc_enhanced.py +++ b/python_core/utils/jsonrpc_enhanced.py @@ -237,12 +237,12 @@ method_registry = JSONRPCMethodRegistry() # 便捷函数 def create_response_handler() -> EnhancedJSONRPCResponse: """创建响应处理器""" - return EnhancedJSONRPCResponse(uuid4()) + return EnhancedJSONRPCResponse(str(uuid4())) def create_progress_reporter(total: int = 100) -> EnhancedProgressReporter: """创建进度报告器""" - return EnhancedProgressReporter(uuid4(), total) + return EnhancedProgressReporter(str(uuid4()), total) def register_method(name: Optional[str] = None):