Package com.sap.ai.sdk.orchestration
Class OrchestrationFilterException.Output
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.ai.sdk.core.common.ClientException
com.sap.ai.sdk.orchestration.OrchestrationClientException
com.sap.ai.sdk.orchestration.OrchestrationFilterException
com.sap.ai.sdk.orchestration.OrchestrationFilterException.Output
- All Implemented Interfaces:
Serializable
- Enclosing class:
OrchestrationFilterException
Exception thrown when an error occurs during output filtering, specifically when the finish
reason is a content filter.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sap.ai.sdk.orchestration.OrchestrationFilterException
OrchestrationFilterException.Input, OrchestrationFilterException.Output -
Field Summary
Fields inherited from class com.sap.ai.sdk.orchestration.OrchestrationFilterException
filterDetails -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves Azure Content Safety output details fromfilterDetails, if present.Methods inherited from class com.sap.ai.sdk.orchestration.OrchestrationFilterException
getFilterDetails, getLlamaGuard38bMethods inherited from class com.sap.ai.sdk.orchestration.OrchestrationClientException
getClientError, getErrorResponse, getErrorResponseStreaming, getStatusCodeMethods inherited from class com.sap.ai.sdk.core.common.ClientException
getHttpRequest, getHttpResponse, setClientError, setHttpRequest, setHttpResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Output
public Output() -
Output
-
Output
-
Output
-
-
Method Details
-
getAzureContentSafetyOutput
Retrieves Azure Content Safety output details fromfilterDetails, if present.- Returns:
- The AzureContentSafetyOutput object, or
nullif not found or conversion fails. - Throws:
IllegalArgumentException- if the conversion of filter details toAzureContentSafetyOutputfails due to invalid content.
-