sharktide/shield / agents /content_agent.py
sharktide's picture
download
raw
610 Bytes
from __future__ import annotations
from typing import Iterable, List
from shield.models.evidence import Evidence
def analyze_content_threats(evidence: Iterable[Evidence]) -> List[Evidence]:
categories = {item.category for item in evidence}
if {"spam", "scam"} & categories:
return [Evidence(
source="content_agent",
category="content_abuse",
risk_score=60 if "scam" in categories else 45,
weight=0.58,
confidence=0.74,
explanation="Content evidence matches known spam or scam abuse patterns",
)]
return []

Xet Storage Details

Size:
610 Bytes
·
Xet hash:
c3d7c731acc2ca446120cf8ca21d491de59a9e6e6e5adf3d1963514f8fd02dcd

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