HomeGuidesAPI ReferenceRelease notes
Log In
Guides

Competitor check

Competitor Check allows users to define one or more entities that are not allowed to be discussed semantically. The check can be relevant both for inputs and outputs.

Using the SDK

from superwise_api.models.agent.agent import AgentCompetitorCheckGuard

restricted_topics_guard = AgentCompetitorCheckGuard(
    name="Rule name",
    tags={"input", "output"}, # Set containing "input", "output", or both
    competitor_names={"Apple"} # Set of restricted competitor names.
)