langsmith.client.Client.get_prompt#
- Client.get_prompt(prompt_identifier: str) Prompt | None[source]#
Get a specific prompt by its identifier.
- Parameters:
prompt_identifier (str) – The identifier of the prompt.
"owner/prompt_name". (The identifier should be in the format "prompt_name" or) –
- Returns:
The prompt object.
- Return type:
Optional[ls_schemas.Prompt]
- Raises:
requests.exceptions.HTTPError – If the prompt is not found or
another error occurs. –