block • Rust AI Agent SDK

block: Create a block result

block

Method

</div>

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

Create a block result

Signature

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

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.