End Session • Rust AI Agent SDK

end_session: End a thinking session. # Arguments * `session_idx` – Index of the session to end * `tokens_used` – Actual tokens used * `time_seconds` – Actual time…

end_session

Method

</div>

This is a method of the ThinkingTracker class in the thinking module.

End a thinking session. # Arguments session_idx – Index of the session to end tokens_used – Actual tokens used * time_seconds – Actual time taken

Signature

python
def end_session(&mut self, session_idx: usize, tokens_used: usize, time_seconds: f64) -> ()

Parameters

ParamField usize

No description available.

ParamField usize

No description available.

ParamField f64

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation