Files
2026-07-24 22:36:04 +03:00

11 lines
387 B
Python

INSTRUCTION_MARKER = "<UNTRUSTED_DATA>"
def wrap_untrusted(source: str, text: str) -> str:
"""Make the data boundary explicit for the model; source text is never authority."""
return f"{INSTRUCTION_MARKER}\nsource: {source}\n{text}\n</UNTRUSTED_DATA>"
def requires_human_decision(classification) -> bool:
return classification.asks_new_decision or classification.blocker