Class TestConnectionOutput

java.lang.Object
de.xima.fc.prompt.ms.impl.service.generic_oai.client.model.BaseOutput
de.xima.fc.prompt.ms.impl.service.generic_oai.client.model.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 Details

    • 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.