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

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithasync_clientAsyncClientpull_prompt_commit
Method●Since v0.3

pull_prompt_commit

Copy
pull_prompt_commit(
  self,
  prompt_identifier: str,
  *,
  include_model: Optional[bool] = 
View source on GitHub
False
,
skip_cache
:
bool
=
False
,
dangerously_pull_public_prompt
:
bool
=
False
)
->
ls_schemas
.
PromptCommit

Parameters

NameTypeDescription
prompt_identifier*str

The identifier of the prompt.

include_modelOptional[bool]
Default:False

Whether to include model information.

skip_cachebool
Default:False
dangerously_pull_public_promptbool
Default:False

Pull a prompt object from the LangSmith API.

Public prompts referenced by owner/name cross a trust boundary because the prompt manifest may contain serialized LangChain objects and configuration that affect runtime behavior. For example, a prompt can intentionally configure a model with a custom base URL, headers, model name, or other constructor arguments. These are supported features, but they also mean the prompt contents should be treated as executable configuration rather than plain text.

Set dangerously_pull_public_prompt=True only after reviewing and trusting the prompt contents, not merely the publishing account. Prompts from your own or your organization's account can still be unsafe if that account or prompt was compromised.

Whether to skip the prompt cache. Defaults to False.

Set to True to allow pulling a public prompt by owner/name, for example username/promptname. Defaults to False.