Record Success • Rust AI Agent SDK

record_success: Record a successful call.

record_success

Method

</div>

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

Record a successful call.

Signature

python
def record_success(&mut self, duration: Duration, status_code: u16) -> ()

Parameters

ParamField Duration

No description available.

ParamField u16

No description available.

Returns

ResponseField ()

The result of the operation.