Can Add Context • Rust AI Agent SDK

can_add_context: Check if budget allows more context

can_add_context

Method

</div>

This is a method of the TokenBudget class in the rag module.

Check if budget allows more context

Signature

python
def can_add_context(&self, tokens: usize) -> bool

Parameters

ParamField usize

No description available.

Returns

ResponseField bool

The result of the operation.


Related Documentation