sharktide/shield / agents /prompt_agent.py
sharktide's picture
download
raw
576 Bytes
from __future__ import annotations
from typing import Iterable, List
from shield.models.evidence import Evidence
def analyze_prompt_threats(evidence: Iterable[Evidence]) -> List[Evidence]:
if any(item.category == "prompt_injection" for item in evidence):
return [Evidence(
source="prompt_agent",
category="prompt_injection",
risk_score=72,
weight=0.72,
confidence=0.86,
explanation="Prompt-security evidence indicates instruction override or jailbreak behavior",
)]
return []

Xet Storage Details

Size:
576 Bytes
·
Xet hash:
4e714933e8e3527d29c5030690bd25e592aa23df8b35cbbbdc86af92a0c3510d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.