# Function buildAzureContentSafetyFilter

- buildAzureContentSafetyFilter<T extends ConfigType>(
  type: T,
  config?: AzureContentSafetyFilterParameters<T>,
  ): AzureContentSafetyFilterReturnType<T>

  Convenience function to build Azure content filter.

  #### Type Parameters

  - T extends ConfigType

  #### Parameters

  - type: T

    Type of the filter, either 'input' or 'output'.

  - `Optional` config: AzureContentSafetyFilterParameters<T>

    Configuration for Azure content safety filter. If skipped, the default configuration of `ALLOW_SAFE_LOW` is used for all filter categories.

  #### Returns AzureContentSafetyFilterReturnType<T>

  Azure content safety configuration.

  #### Example

      "buildAzureContentSafetyFilter('input', { hate: 'ALLOW_SAFE', violence: 'ALLOW_SAFE_LOW_MEDIUM' })"

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

  - Defined in packages/orchestration/dist/util/filtering.d.ts:10