Skip to main content

ThinkingTracker

Defined in the thinking module.
Rust AI Agent SDK Tracks thinking usage across multiple sessions. Provides aggregate statistics and reporting.

Fields

Methods

new

Create a new tracker.

start_session

Start a new thinking session. # Arguments * budget_tokens - Token budget for this session * budget_time - Optional time budget * complexity - Task complexity (0.0 to 1.0) # Returns Index of the new session Parameters:

end_session

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

session_count

Get the number of sessions.

average_tokens_per_session

Get average tokens per session.

average_time_per_session

Get average time per session.

average_utilization

Get average budget utilization.

over_budget_count

Get number of sessions that went over budget.

get_summary

Get summary statistics.

clear

Clear all tracking data.

Source

View on GitHub

praisonai/src/thinking/mod.rs at line 389

Rust Thinking

Rust Reasoning