Package com.chatmotorapi.api.listener
Provides the MotorResponseListener used by streaming API, and provides ready to use implementations.
-
Interface Summary Interface Description MotorResponseListener Listener interface for handling streamed responses from the ChatMotor. -
Class Summary Class Description ConsoleResponseListener A concrete implementation ofMotorResponseListener
that outputs response chunks to the console.MotorFileResponseListener A concrete implementation ofMotorResponseListener
that outputs response chunks to a file.QueueResponseListener A concrete implementation ofMotorResponseListener
that stores response chunks in a user-provided queue.SwingResponseListener A Swing implementation ofMotorResponseListener
that updates a JTextArea with the received response chunks.