• Load a LangChain module from a serialized text representation. NOTE: This functionality is currently in beta. Loaded classes may change independently of semver.

    Type Parameters

    • T

    Parameters

    • text: string

      Serialized text representation of the module.

    • secretsMap: Record<string, any> = {}
    • optionalImportsMap: OptionalImportMap & Record<string, any> = {}

    Returns Promise<T>

    A loaded instance of a LangChain module.

Generated using TypeDoc