sinch.domains.conversation.models.v1.sinch_events.smart_conversations.offensive_analysis module

class sinch.domains.conversation.models.v1.sinch_events.smart_conversations.offensive_analysis.OffensiveAnalysis(
*,
message: Annotated[str, Strict(strict=True)] | None = None,
url: Annotated[str, Strict(strict=True)] | None = None,
evaluation: Literal['SAFE', 'UNSAFE'] | Annotated[str, Strict(strict=True)] | None = None,
score: Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None = None,
**extra_data: Any,
)[source]

Bases: SinchEvent

Parameters:
  • message (Annotated[str, Strict(strict=True)] | None)

  • url (Annotated[str, Strict(strict=True)] | None)

  • evaluation (Literal['SAFE', 'UNSAFE'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • score (Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None)

  • extra_data (Any)

message: Annotated[str, Strict(strict=True)] | None
url: Annotated[str, Strict(strict=True)] | None
evaluation: Literal['SAFE', 'UNSAFE'] | Annotated[str, Strict(strict=True)] | None
score: Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None
model_config = {'extra': 'allow', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init(_SnakifyExtrasOnInit__context: Any) → None

Marks applied non-None defaults as set.

Parameters:

_SnakifyExtrasOnInit__context (Any)

Return type:

None