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):