Share via


CustomTopicConfig Class

Gets or sets the source to which filter applies.

Constructor

CustomTopicConfig(*, topic_name: str | None = None, blocking: bool | None = None, source: str | _models.RaiPolicyContentSource | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
topic_name
str

Name of RAI topic.

Default value: None
blocking

If blocking would occur.

Default value: None
source

Content source to apply the Content Filters. Known values are: "Prompt" and "Completion".

Default value: None

Variables

Name Description
topic_name
str

Name of RAI topic.

blocking

If blocking would occur.

source

Content source to apply the Content Filters. Known values are: "Prompt" and "Completion".