Start Session • Rust AI Agent SDK

start_session: Start a new thinking session. # Arguments * `budget_tokens` – Token budget for this session * `budget_time` – Optional time budget * `complexity` -…

start_session

Method

</div>

This is a method of the ThinkingTracker class in the thinking module.

Start a new thinking session. # Arguments budget_tokens – Token budget for this session budget_time – Optional time budget * complexity – Task complexity (0.0 to 1.0) # Returns Index of the new session

Signature

python
def start_session(
        &mut self,
        budget_tokens: usize,
        budget_time: Option<f64>,
        complexity: f64,
    ) -> usize

Parameters

ParamField usize

No description available.

ParamField Option&lt;f64&gt;

No description available.

ParamField f64

No description available.

Returns

ResponseField usize

The result of the operation.


Related Documentation