new • Rust AI Agent SDK

new: Create a new ledger with max tokens

new

Method

</div>

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

Create a new ledger with max tokens

Signature

python
def new(max_tokens: usize) -> Self

Parameters

ParamField usize

No description available.

Returns

ResponseField Self

The result of the operation.