warn • Rust AI Agent SDK

warn: Create a warning result.

warn

Method

</div>

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

Create a warning result.

Signature

python
def warn(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.