From 22fb06ff53592f840d3dfced22fff296ccde6ae4 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 7 Aug 2025 05:37:29 -0600 Subject: [PATCH] Create model for review description output --- frigate/data_processing/post/types.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frigate/data_processing/post/types.py diff --git a/frigate/data_processing/post/types.py b/frigate/data_processing/post/types.py new file mode 100644 index 000000000..6f1dc2ff1 --- /dev/null +++ b/frigate/data_processing/post/types.py @@ -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.", + )