With Error • Rust AI Agent SDK

with_error: Set error

with_error

Method

</div>

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

Set error

Signature

python
def with_error(mut self, error: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation