Class OrchestrationFilterException.Output

All Implemented Interfaces:
Serializable
Enclosing class:
OrchestrationFilterException

public static class OrchestrationFilterException.Output extends OrchestrationFilterException
Exception thrown when an error occurs during output filtering, specifically when the finish reason is a content filter.
See Also:
  • Constructor Details

    • Output

      public Output()
    • Output

      public Output(String message)
    • Output

      public Output(Throwable cause)
    • Output

      public Output(String message, Throwable cause)
  • Method Details

    • getAzureContentSafetyOutput

      @Nullable public AzureContentSafetyOutput getAzureContentSafetyOutput()
      Retrieves Azure Content Safety output details from filterDetails, if present.
      Returns:
      The AzureContentSafetyOutput object, or null if not found or conversion fails.
      Throws:
      IllegalArgumentException - if the conversion of filter details to AzureContentSafetyOutput fails due to invalid content.