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
def end_session(&mut self, session_idx: usize, tokens_used: usize, time_seconds: f64) -> ()Parameters
ParamField
usizeNo description available.
ParamField
usizeNo description available.
ParamField
f64No description available.
Returns
ResponseField
()The result of the operation.