sinch.domains.conversation.models.v1.sinch_events.smart_conversations.document_image_classification module
- class sinch.domains.conversation.models.v1.sinch_events.smart_conversations.document_image_classification.DocumentImageClassification(
- *,
- doc_type: Annotated[str, Strict(strict=True)] | None = None,
- confidence: Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None = None,
- **extra_data: Any,
Bases:
SinchEventAn object that identifies a document type within the image, along with a confidence level for that document type.
- Parameters:
doc_type (Annotated[str, Strict(strict=True)] | None)
confidence (Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None)
extra_data (Any)
- doc_type: Annotated[str, Strict(strict=True)] | None
- confidence: 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,
Marks applied non-
Nonedefaults as set.- Parameters:
_SnakifyExtrasOnInit__context (Any)
- Return type:
None