new • Rust AI Agent SDK

new: Create a new memory message

new

Method

</div>

This is a method of the MemoryMessage class in the protocols module.

Create a new memory message

Signature

python
def new(role: impl Into<String>, content: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.