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
def set_state(&mut self, key: &str, value: serde_json::Value) -> ()Parameters
ParamField
&strNo description available.
ParamField
serde_json::ValueNo description available.
Returns
ResponseField
()The result of the operation.