• Pull a prompt from the hub.

    Type Parameters

    • T extends Runnable<any, any, RunnableConfig<Record<string, any>>>

    Parameters

    • ownerRepoCommit: string

      The name of the repo containing the prompt, as well as an optional commit hash separated by a slash.

    • Optionaloptions: {
          apiKey?: string;
          apiUrl?: string;
          includeModel?: boolean;
      }
      • OptionalapiKey?: string

        LangSmith API key to use when pulling the prompt

      • OptionalapiUrl?: string

        LangSmith API URL to use when pulling the prompt

      • OptionalincludeModel?: boolean

        Whether to also instantiate and attach a model instance to the prompt, if the prompt has associated model metadata. If set to true, invoking the resulting pulled prompt will also invoke the instantiated model. You must have the appropriate LangChain integration package installed.

    Returns Promise<T>