changed naming of messaging methods
Browse filesFiles changed (2)
- LCToolFlow.py+2-2
- run.py+2-2
92 unmodified lines939495969697989910010110110292 unmodified lines input_data = input_message.data observation = self.backend.run(tool_input=input_data) reply = self._package_output_message( reply = self.package_output_message( input_message=input_message, response = {"observation": observation} ) self.reply_to_message(reply=reply, to=input_message) self.send_message(reply, is_reply=True)
75 unmodified lines76777879798081828283848575 unmodified lines )
#option2: use the proxy_flow #input_message = proxy_flow._package_input_message(data = data) #input_message = proxy_flow.package_input_message(data = data) #7. ~~~ Run inference ~~~ future = proxy_flow.send_message_blocking(input_message) future = proxy_flow.get_reply_future(input_message) #uncomment this line if you would like to get the full message back #reply_message = future.get_message()LCToolFlow.py+2-2
run.py+2-2