Skip to main content

ThinkingUsage

Defined in the thinking module.
Rust AI Agent SDK Usage statistics for a single thinking session.

Fields

Methods

tokens_remaining

Get remaining token budget.

time_remaining

Get remaining time budget.

token_utilization

Get token utilization percentage.

is_over_budget

Check if over token budget.

is_over_time

Check if over time budget.

to_map

Convert to HashMap for serialization.

Source

View on GitHub

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

Rust Thinking

Rust Reasoning