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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

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

pull_prompt_commit

Pull a prompt object from the LangSmith API.

Copy
pull_prompt_commit(
  self,
  prompt_identifier: str,
  *,
  include_model: Optional[bool] = False,
  skip_cache: 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

Whether to skip the prompt cache.

Defaults to False.

View source on GitHub