Robert and I were discussing how to specify polici...
# proj-agent
l
Robert and I were discussing how to specify policies for what the agent is allowed and not allowed to do and this progent might be a good reference: https://arxiv.org/abs/2504.11703
c
this very much feels like invariant analyzer.. i remember they have similar DSL policy
l
yeah, there are lots of other examples it seems, including langchain, openai agents, etc. this one seemed like the mot well developed though
Here are some more references, if anyone else has any would love to hear them! Right now I’m leaning towards nvidia nemo guardrails, or possibly just the simple constitutional AI prompt from Anthropic. • Claude’s system prompt has lots of natural language saying what not to do • Anthropic’s constitutional AI paper has a constitution checklist in JSON format ◦ Hugging Face describes how to use this constitution for training • Nemo guardrails has a Colang DSL specifically for specifying policies • Guardrails AI has a similar YAML-based format • llamafirewall has a JSON-based format
❤️ 1
a
Guardrails AI / Bedrock Guardrails are probably the top two known Guardrails systems right now I think at a bare minimum OH utilizing something similar to Anthropics Constitution is a good start. I guess the question is - does OH want to be responsible for maintaining guardrail systems? Because we can get that today by just using litellm
c
This is a very good point! Maybe we can get rid of the concept of security analyzer completely by switching to a standardized guardrails? https://docs.litellm.ai/docs/proxy/guardrails/quick_start
cc @wide-doctor-37830 since this is related to security analyzer
l
that only works when using the litellm proxy I guess, but maybe that’s OK
thanks for the idea @ambitious-baker-8365!
a
no worries! Couldn't live w/o litellm today tbh extra prompt caching guardrails mcp support too many good things 😆