Reviver#

class langchain_core.load.load.Reviver(secrets_map: Dict[str, str] | None = None, valid_namespaces: List[str] | None = None, secrets_from_env: bool = True)[source]#

Reviver for JSON objects.

Initialize the reviver.

Parameters:
  • secrets_map (Dict[str, str] | None) – A map of secrets to load. If a secret is not found in the map, it will be loaded from the environment if secrets_from_env is True. Defaults to None.

  • valid_namespaces (List[str] | None) – A list of additional namespaces (modules) to allow to be deserialized. Defaults to None.

  • secrets_from_env (bool) – Whether to load secrets from the environment. Defaults to True.

Methods

__init__([secrets_map,Β valid_namespaces,Β ...])

Initialize the reviver.

__init__(secrets_map: Dict[str, str] | None = None, valid_namespaces: List[str] | None = None, secrets_from_env: bool = True) None[source]#

Initialize the reviver.

Parameters:
  • secrets_map (Dict[str, str] | None) – A map of secrets to load. If a secret is not found in the map, it will be loaded from the environment if secrets_from_env is True. Defaults to None.

  • valid_namespaces (List[str] | None) – A list of additional namespaces (modules) to allow to be deserialized. Defaults to None.

  • secrets_from_env (bool) – Whether to load secrets from the environment. Defaults to True.

Return type:

None