> ## 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.

# Allocate Custom • Rust AI Agent SDK

> allocate_custom: Allocate with custom ratios

# allocate\_custom

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

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

Allocate with custom ratios

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def allocate_custom(
        &self,
        system_pct: f64,
        history_pct: f64,
        tools_pct: f64,
    ) -> BudgetAllocation
```

## Parameters

<ParamField query="system_pct" type="f64" required={true}>
  No description available.
</ParamField>

<ParamField query="history_pct" type="f64" required={true}>
  No description available.
</ParamField>

<ParamField query="tools_pct" type="f64" required={true}>
  No description available.
</ParamField>

### Returns

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