Two kinds of guardrail
Text guardrails sit around the model. They scan inputs and outputs for unsafe content, leaked data and prompt injection, and they pass, rewrite or refuse a message.
Action guardrails sit between the agent and its tools. They look at what the agent is about to do, such as the amount of a refund or the record it wants to change, and decide whether that action may run.