langchain_core.load.load.loadsΒΆ

langchain_core.load.load.loads(text: str, *, secrets_map: Optional[Dict[str, str]] = None, valid_namespaces: Optional[List[str]] = None) Any[source]ΒΆ

[Beta] Revive a LangChain class from a JSON string. Equivalent to load(json.loads(text)).

Parameters
  • text – The string to load.

  • secrets_map – A map of secrets to load.

  • valid_namespaces – A list of additional namespaces (modules) to allow to be deserialized.

Returns

Revived LangChain objects.[Beta] Revive a LangChain class from a JSON string.

Equivalent to load(json.loads(text)).

Parameters
  • text – The string to load.

  • secrets_map – A map of secrets to load.

  • valid_namespaces – A list of additional namespaces (modules) to allow to be deserialized.

Returns

Revived LangChain objects.

Notes