new • Rust AI Agent SDK
new: Create a new context segment
new
Method
</div>
This is a method of the ContextSegment class in the context module.
Create a new context segment
Signature
def new(name: impl Into<String>, tokens: usize) -> SelfParameters
ParamField
impl Into<String>No description available.
ParamField
usizeNo description available.
Returns
ResponseField
SelfThe result of the operation.