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

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

Parameters

ParamField f64

No description available.

Returns

ResponseField usize

The result of the operation.


Related Documentation