new • Rust AI Agent SDK

new: Create a new gateway message.

new

Method

</div>

This is a method of the GatewayMessage class in the gateway module.

Create a new gateway message.

Signature

python
def new(
        content: impl Into<serde_json::Value>,
        sender_id: impl Into<String>,
        session_id: impl Into<String>,
    ) -> Self

Parameters

ParamField impl Into&lt;serde_json::Value&gt;

No description available.

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.