With Duration • Rust AI Agent SDK

with_duration: Set duration.

with_duration

Method

</div>

This is a method of the TelemetryEvent class in the telemetry module.

Set duration.

Signature

python
def with_duration(mut self, duration: Duration) -> Self

Parameters

ParamField Duration

No description available.

Returns

ResponseField Self

The result of the operation.