custom • Rust AI Agent SDK

custom: Add a custom metric

custom

Method

</div>

This is a method of the AgentMetrics class in the protocols module.

Add a custom metric

Signature

python
def custom(mut self, key: impl Into<String>, value: f64) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField f64

No description available.

Returns

ResponseField Self

The result of the operation.