Set State • Rust AI Agent SDK

set_state: Set a session state value.

set_state

Method

</div>

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

Set a session state value.

Signature

python
def set_state(&mut self, key: &str, value: serde_json::Value) -> ()

Parameters

ParamField &str

No description available.

ParamField serde_json::Value

No description available.

Returns

ResponseField ()

The result of the operation.