mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 17:47:41 +03:00
Create model for review description output
This commit is contained in:
parent
584d131a7f
commit
22fb06ff53
16
frigate/data_processing/post/types.py
Normal file
16
frigate/data_processing/post/types.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
|
|
||||||
|
class ReviewMetadata(BaseModel):
|
||||||
|
scene: str = Field(
|
||||||
|
description="A concise summary of the overall scene. This should be a single string of text."
|
||||||
|
)
|
||||||
|
action: str = Field(
|
||||||
|
description="A concise description of the primary action or event happening in the scene. This should be a single string of text."
|
||||||
|
)
|
||||||
|
potential_threat_level: int | None = Field(
|
||||||
|
default=None,
|
||||||
|
ge=0,
|
||||||
|
le=3,
|
||||||
|
description="An integer representing the potential threat level (0-3). 0: No threat. 1: Minor anomaly. 2: Moderate concern. 3: High threat. Only include this field if a clear security concern is observable; otherwise, omit it.",
|
||||||
|
)
|
||||||
Loading…
Reference in New Issue
Block a user