Create model for review description output

This commit is contained in:
Nicolas Mowen 2025-08-07 05:37:29 -06:00
parent 584d131a7f
commit 22fb06ff53

View 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.",
)