Class TestConnectionOutput


  • public final class TestConnectionOutput
    extends BaseOutput
    The output of a list models request, contains a list of available model IDs.
    Since:
    8.5.0
    • Method Detail

      • answer

        public String answer()
        Gets the answer that was returned by the model in response to the test prompt.
        Returns:
        The model's answer.
      • builder

        public static TestConnectionOutput.Builder builder()
        Creates a new builder for list models output instance.
        Returns:
        The builder.
      • error

        public static TestConnectionOutput error​(GenericOaiErrorType type,
                                                 String errorMessage,
                                                 Throwable cause)
        Creates a TestConnectionOutput representing an error.
        Parameters:
        type - The type of error.
        errorMessage - A descriptive error message.
        cause - The underlying exception that caused the error.
        Returns:
        An ask response instance representing the error.