Allow With Reason • Rust AI Agent SDK

allow_with_reason: Create an allow result with reason

allow_with_reason

Method

</div>

This is a method of the HookResult class in the hooks module.

Create an allow result with reason

Signature

python
def allow_with_reason(reason: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation