socket_server.py (903 Bytes)
I have wrote a simple script to recieve Rhino code generated by LLM and excute.
However, this script runs in main thread which blocks the Rhino UI, I have to use “break” to stop it after the Rhino Code is recieved.
I want to run the socket in the subthread, and let the subthread send the Rhino code to mainthread to excute. If it is possible, I also want to send the cli stdout and stderror back to the LLM after the Rhino code is excuted.
Could someone tell me what knowledge should I learn for my plan? It would be the best if you could give me the specific documentation.
Thanks
4 posts - 3 participants