pub fn load(obj: Value, config: Option<ReviverConfig>) -> Result<Value>Expand description
Revive a LangChain object from a JSON value.
Use this if you already have a parsed JSON object,
e.g., from serde_json::from_str or similar.
§Warning
This function can instantiate arbitrary types based on the serialized data. Be careful when using with untrusted input.
§Arguments
obj- The JSON value to revive.config- Optional configuration for the reviver.
§Returns
The revived value.
§Errors
Returns an error if revival fails.