Skip to main content

can_add_context

Method
This is a method of the TokenBudget class in the rag module.
Check if budget allows more context

Signature

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

Parameters

tokens
usize
required
No description available.

Returns

Returns
bool
The result of the operation.