new • Rust AI Agent SDK
new: Create a new session message
new
Method
</div>
This is a method of the SessionMessage class in the session module.
Create a new session message
Signature
def new(role: impl Into<String>, content: impl Into<String>) -> SelfParameters
ParamField
impl Into<String>No description available.
ParamField
impl Into<String>No description available.
Returns
ResponseField
SelfThe result of the operation.