LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithasync_clientAsyncClientget_prompt
Method●Since v0.14

get_prompt

Copy
get_prompt(
    self,
    prompt_identifier: str,
) -> Optional[ls_schemas.Prompt]
View source on GitHub

Parameters

NameTypeDescription
prompt_identifier*str

The identifier of the prompt.

The identifier should be in the format 'prompt_name' or 'owner/prompt_name'.

Get a specific prompt by its identifier.