I believe server.py needs to handle funcResult variable. The function stream_response needs to include this parameter so that draft_response can use it too ( since it will be called in llm_with_func_calling.py with that parameter)
In general, I suggest you guys create a new file called server_with_func_calling.py to include this.
Thanks.