Allocate Custom • Rust AI Agent SDK

allocate_custom: Allocate with custom ratios

allocate_custom

Method

</div>

This is a method of the ContextBudgeter class in the context module.

Allocate with custom ratios

Signature

python
def allocate_custom(
        &self,
        system_pct: f64,
        history_pct: f64,
        tools_pct: f64,
    ) -> BudgetAllocation

Parameters

ParamField f64

No description available.

ParamField f64

No description available.

ParamField f64

No description available.

Returns

ResponseField BudgetAllocation

The result of the operation.