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
def with_tokens(mut self, tokens: u32) -> SelfParameters
ParamField
u32No description available.
Returns
ResponseField
SelfThe result of the operation.