How To
Setting A Timeout On Your Protect Requests
Your Protect Rules rely on Guardrail Metrics. Metrics are calculated using ML models, which can have varying latencies.
Setting a timeout on your Protect invocations
You can set a timeout on your Protect invocations to ensure that your Protect checks don’t add excessive wait times for your users. If a metric exceeds the timeout
, any Rule and Ruleset that require it also time out and will not trigger.
To configure your timeout setting, set the timeout
param when calling invoke:
Was this page helpful?