On Error • Rust AI Agent SDK
on_error: Run on-error hooks
on_error
Method
</div>
This is a method of the HookRunner class in the hooks module.
Run on-error hooks
Signature
def on_error(&self, session_id: &str, error: &str) -> Result<HookResult>Parameters
ParamField
&strNo description available.
ParamField
&strNo description available.