Track LLM Call • Rust AI Agent SDK

track_llm_call: Track LLM call

track_llm_call

Method

</div>

This is a method of the MinimalTelemetry class in the telemetry_funcs module.

Track LLM call

Signature

python
def track_llm_call(
        &self,
        model: &str,
        input_tokens: Option<u32>,
        output_tokens: Option<u32>,
        duration_ms: u64,
    ) -> ()

Parameters

ParamField &str

No description available.

ParamField Option&lt;u32&gt;

No description available.

ParamField Option&lt;u32&gt;

No description available.

ParamField u64

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation