Include extra level for normal activity

This commit is contained in:
Nicolas Mowen 2025-08-10 06:01:46 -06:00
parent f8ca91643e
commit caf35ec3f4
2 changed files with 3 additions and 4 deletions

View File

@ -8,9 +8,8 @@ class ReviewMetadata(BaseModel):
confidence: float = Field(
description="A float between 0 and 1 representing your overall confidence in this analysis."
)
potential_threat_level: int | None = Field(
default=None,
ge=1,
potential_threat_level: int = Field(
ge=0,
le=3,
description="An integer representing the potential threat level (1-3). 1: Minor anomaly. 2: Moderate concern. 3: High threat. Only include this field if a clear security concern is observable; otherwise, omit it.",
)

View File

@ -62,10 +62,10 @@ class GenAIClient:
- `scene` (string): A full description including setting, entities, actions, and any plausible supported inferences.
- `confidence` (float): A number 01 for overall confidence in the analysis.
- `potential_threat_level` (integer, optional): Include only if there is a clear, observable security concern:
- 0 = Normal activity is occurring
- 1 = Unusual but not overtly threatening
- 2 = Suspicious or potentially harmful
- 3 = Clear and immediate threat
Omit this field if no concern is evident.
**IMPORTANT:**
- Values must be plain strings, floats, or integers no nested objects, no extra commentary.