option • Rust AI Agent SDK

option: Add an option

option

Method

</div>

This is a method of the MemoryPreset class in the presets module.

Add an option

Signature

python
def option(mut self, key: impl Into<String>, value: impl Into<serde_json::Value>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;serde_json::Value&gt;

No description available.

Returns

ResponseField Self

The result of the operation.