Interface ChatModelListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onRequest(ChatModelRequestContext requestContext) This method is called before the request is sent to the model.
      void onResponse(ChatModelResponseContext responseContext) This method is called after the response is received from the model.
      void onError(ChatModelErrorContext errorContext) This method is called when an error occurs during interaction with the model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onRequest

         void onRequest(ChatModelRequestContext requestContext)

        This method is called before the request is sent to the model.

        Parameters:
        requestContext - The request context.
      • onResponse

         void onResponse(ChatModelResponseContext responseContext)

        This method is called after the response is received from the model.

        Parameters:
        responseContext - The response context.
      • onError

         void onError(ChatModelErrorContext errorContext)

        This method is called when an error occurs during interaction with the model.

        Parameters:
        errorContext - The error context.