With Tokens • Rust AI Agent SDK

with_tokens: Set token usage

with_tokens

Method

</div>

This is a method of the TaskOutput class in the task module.

Set token usage

Signature

python
def with_tokens(mut self, tokens: u32) -> Self

Parameters

ParamField u32

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation