serv_prompt_guard to the same tools array as your application tools.
How the guard works
The guard is an input-side safety check. SERV evaluates the generated reasoning prompt against the user-controlled request context. If the judge identifies an injection attempt, SERV returns an endpoint-shaped refusal and does not call the requested upstream model. The guard is opt-in. The marker enables it, but the model never sees or calls the marker. You do not need to implement a function handler.Where to use it
Use the guard for assistants with sensitive system prompts, private policies, or routing rules. Keep authorization, access checks, secret handling, and tool permissions in your application. Do not place credentials in a prompt. The guard adds an inference step, latency, and cost. Enable it on requests that handle protected instructions, then measure false positives with your own prompts. If SERV cannot generate the reasoning prompt needed to arm the guard, it returns a502 error. If the guard judge fails after being armed, the request continues without a verdict.
After guarded requests run, open the Safety report to review Guard results, blocked requests, and reported false positives.
Do not declare both serv_prompt_guard and serv_prompt_guard_legacy in one request. SERV rejects that configuration.
