Set Error • Rust AI Agent SDK

set_error: Mark as error.

set_error

Method

</div>

This is a method of the Span class in the trace module.

Mark as error.

Signature

python
def set_error(&mut self, message: impl Into<String>) -> ()

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation