Add Message • Rust AI Agent SDK

add_message: Add a message to the session history.

add_message

Method

</div>

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

Add a message to the session history.

Signature

python
def add_message(&mut self, message: GatewayMessage) -> ()

Parameters

ParamField GatewayMessage

No description available.

Returns

ResponseField ()

The result of the operation.