Interface GuardrailContentPolicy.Builder

    • Method Detail

      • filters

        GuardrailContentPolicy.Builder filters​(Collection<GuardrailContentFilter> filters)

        Contains the type of the content filter and how strongly it should apply to prompts and model responses.

        Parameters:
        filters - Contains the type of the content filter and how strongly it should apply to prompts and model responses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        GuardrailContentPolicy.Builder filters​(GuardrailContentFilter... filters)

        Contains the type of the content filter and how strongly it should apply to prompts and model responses.

        Parameters:
        filters - Contains the type of the content filter and how strongly it should apply to prompts and model responses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.