Skip to main content

get_tokens_for_complexity

Method
This is a method of the ThinkingBudget class in the thinking module.
Get token budget based on task complexity. # Arguments * complexity - Complexity score (0.0 to 1.0) # Returns Adjusted token budget

Signature

def get_tokens_for_complexity(&self, complexity: f64) -> usize

Parameters

complexity
f64
required
No description available.

Returns

Returns
usize
The result of the operation.