> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tokens Remaining • Rust AI Agent SDK

> tokens_remaining: Get remaining token budget.

# tokens\_remaining

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ThinkingUsage**](../classes/ThinkingUsage) class in the [**thinking**](../modules/thinking) module.

Get remaining token budget.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def tokens_remaining(&self) -> usize
```

### Returns

<ResponseField name="Returns" type="usize">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Token Management" icon="coins" href="/docs/rust/token-management" />

  <Card title="Rust Budget" icon="wallet" href="/docs/rust/budget" />
</CardGroup>
