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

# RunBudget

> What one run may spend on a tenant, which bounds a loop on a real one.

```csharp
public sealed class RunBudget
```

## Constructors

```csharp
public RunBudget(int accounts = 10, int writes = 400)
```

What one run may spend on a tenant, which bounds a loop on a real one.

### Parameters

**accounts** `int`

How many accounts it may create.

**writes** `int`

How many writes it may send.

## Fields

**Accounts** `int` *required*

**Writes** `int` *required*

## Properties

**Spent** `bool` *required*

Whether the run has gone past what it may spend.

**Unlimited** `RunBudget` *required*

No limit, for a tenant where nothing costs.

## Methods

### SpendAccount()

```csharp
public void SpendAccount()
```

### SpendWrite()

```csharp
public void SpendWrite()
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.