Not a polyline curve. Type received: <class 'Rhino.Geometry.Point3d'>

I have been trying to make a python script in Grasshopper with chatGPT, be we don’t seem to be able to solve a problem with an input.
I have made some grasshopper scripts, but I don’t really know Python.
Working in Rhino 8, build 1.0.0008.

The error:
Warning: An item in the shapes input is not a polyline or polyline curve. Type received: <class ‘Rhino.Geometry.Point3d’>
This is repeated 7 times, as many as there are points in the original input

RectPack_014_met AI_clean_forQ.gh (16.4 KB)

Question reposted in the scripting category