With Context • Rust AI Agent SDK

with_context: Add context to an error

with_context

Method

</div>

This is a method of the Error class in the error module.

Add context to an error

Signature

python
def with_context(self, context: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation