langsmith.client.Client.pull_prompt_commit#
- Client.pull_prompt_commit(prompt_identifier: str, *, include_model: bool | None = False) PromptCommit[source]#
Pull a prompt object from the LangSmith API.
- Parameters:
prompt_identifier (str) – The identifier of the prompt.
include_model (bool | None) –
- Returns:
The prompt object.
- Return type:
ls_schemas.PromptObject
- Raises:
ValueError – If no commits are found for the prompt.