# Guardrails Demo (/examples/agent-os/middleware/guardrails-demo)



This legacy example combined behavior now covered by multiple v3.0.4 examples. Choose the current page that matches your task.

| Task                                | Current page                                                                                           |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Add custom AgentOS middleware       | [Add rate-limit and request-log middleware to AgentOS](/examples/agent-os/customize/custom-middleware) |
| Combine hooks with agent guardrails | [Mixed Hooks and Guardrails](/examples/agents/guardrails/mixed-hooks)                                  |
