Truncate Context • Rust AI Agent SDK
truncate_context: Truncate context to fit token budget
truncate_context
Method
</div>
Truncate context to fit token budget
Signature
def truncate_context(&self, context: &str, max_tokens: usize) -> StringParameters
ParamField
&strNo description available.
ParamField
usizeNo description available.
Returns
ResponseField
StringThe result of the operation.