With Metadata • Rust AI Agent SDK

with_metadata: Add metadata

with_metadata

Method

</div>

This is a method of the RewriteResult class in the specialized_agents module.

Add metadata

Signature

python
def with_metadata(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.