With Context • Rust AI Agent SDK

with_context: Add additional context

with_context

Method

</div>

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

Add additional context

Signature

python
def with_context(mut 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