Hi everyone! I have a chatbot with a tool (created using class CustomToolSpec(BaseToolSpec)), and want to start a background process thats take time, and send just a message to user... I already try something like:
with multiprocessing.Pool(processes=1) as pool:
future = pool.apply_async(self.my_long_function, args=(my_args,))
return "Thanks, I will start the long-function."
but my_long_function are never called. Any way to accomplish this?