Prompts
Prompts
from any_guardrail import AnyGuardrail, GuardrailName
# Which prompt versions does this guardrail ship?
versions = AnyGuardrail.list_prompt_versions(GuardrailName.ANYLLM)
# Fetch the default prompt template
prompt = AnyGuardrail.get_prompt(GuardrailName.ANYLLM)
print(prompt.segments["system"]) # the template text
print(sorted(prompt.variables)) # placeholders it expects, e.g. ["policy"]
print(prompt.provenance) # "author" (model author's prompt) or "adapted" (ours)
print(prompt.source) # provenance URL, when the prompt comes from a model cardBringing your own prompt
Reference-only prompts
Author-published policies, rubrics & criteria
Last updated