Get Tokens For Complexity • Rust AI Agent SDK
get_tokens_for_complexity: Get token budget based on task complexity. # Arguments * `complexity` – Complexity score (0.0 to 1.0) # Returns Adjusted token budget
get_tokens_for_complexity
Method
</div>
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) -> usizeParameters
ParamField
f64No description available.
Returns
ResponseField
usizeThe result of the operation.