LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithclientClientunlikePrompt
Method●Since v0.1

unlikePrompt

Unlike a prompt (remove a previously added like).

Copy
unlikePrompt(promptIdentifier: string): Promise<LikePromptResponse>

Parameters

NameTypeDescription
promptIdentifier*string

The identifier of the prompt. Can be in the format:

  • "promptName" (for private prompts, owner defaults to "-")
  • "owner/promptName" (for prompts with explicit owner)

Example

Copy
// Unlike a prompt
const response = await client.unlikePrompt("owner/useful-prompt");
console.log(`Prompt now has ${response.likes} likes`);
View source on GitHub