block • Rust AI Agent SDK

block: Create a blocking result.

block

Method

</div>

This is a method of the PolicyResult class in the policy module.

Create a blocking result.

Signature

python
def block(rule: impl Into<String>, message: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.