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
The output of a list models request, contains a list of available model IDs.
- Since:
- 8.5.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionanswer()Gets the answer that was returned by the model in response to the test prompt.static TestConnectionOutput.Builderbuilder()Creates a new builder for list models output instance.static TestConnectionOutputerror(GenericOaiErrorType type, String errorMessage, Throwable cause) Creates aTestConnectionOutputrepresenting an error.Methods inherited from class BaseOutput
errorCause, errorMessage, errorType, hasError
-
Method Details
-
answer
Gets the answer that was returned by the model in response to the test prompt.- Returns:
- The model's answer.
-
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 aTestConnectionOutputrepresenting 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.
-