Prompt changes

This commit is contained in:
Nicolas Mowen 2025-08-08 21:12:46 -06:00
parent 32bd32cf50
commit ca38705ea5
2 changed files with 5 additions and 6 deletions

View File

@ -3,10 +3,10 @@ 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."
description="A comprehensive description of the setting and entities, including relevant context and plausible inferences if supported by visual evidence."
)
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."
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,

View File

@ -56,9 +56,8 @@ class GenAIClient:
Your response **MUST** be a flat JSON object with the following fields:
- `scene` (string): A comprehensive description of the setting and entities, including relevant context and plausible inferences if supported by visual evidence.
- `action` (string): A concise description of the main action(s) or movement(s) taking place.
- `potential_threat_level` (integer, optional): 03 scale. Only include if a clear security concern is visible:
- 0 = No concern
- `confidence` (float): A float between 0 and 1 representing your overall confidence in this analysis.
- `potential_threat_level` (integer, optional): 13 scale. Only include if a clear security concern is visible:
- 1 = Unusual but not overtly threatening
- 2 = Suspicious or potentially harmful
- 3 = Clear and immediate threat