langchainhub
package which is now deprecated. All functionality going forward will live in the langsmith
package.LANGSMITH_API_KEY
set to your current workspace’s api key from LangSmith, you can skip this step.
Otherwise, get an API key for your workspace by navigating to Settings > API Keys > Create API Key
in LangSmith.
Set your environment variable.
push prompt
method.
pull prompt
method, which returns a the prompt as a langchain PromptTemplate
.
To pull a private prompt you do not need to specify the owner handle (though you can, if you have one set).
To pull a public prompt from the LangChain Hub, you need to specify the handle of the prompt’s author.
langchain/hub/node
entrypoint, as it handles deserialization of models associated with your prompt configuration automatically.If you are in a non-Node environment, “includeModel” is not supported for non-OpenAI models and you should use the base langchain/hub
entrypoint.list prompts
, delete prompt
, like prompt
and unlike prompt
methods. See the LangSmith SDK client for extensive documentation on these methods.