langsmith.client.Client.update_prompt#
- Client.update_prompt(prompt_identifier: str, *, description: str | None = None, readme: str | None = None, tags: Sequence[str] | None = None, is_public: bool | None = None, is_archived: bool | None = None) Dict[str, Any][source]#
Update a promptβs metadata.
To update the content of a prompt, use push_prompt or create_commit instead.
- Parameters:
prompt_identifier (str) β The identifier of the prompt to update.
description (Optional[str]) β New description for the prompt.
readme (Optional[str]) β New readme for the prompt.
tags (Optional[Sequence[str]]) β New list of tags for the prompt.
is_public (Optional[bool]) β New public status for the prompt.
is_archived (Optional[bool]) β New archived status for the prompt.
- Returns:
The updated prompt data as returned by the server.
- Return type:
Dict[str, Any]
- Raises:
ValueError β If the prompt_identifier is empty.
HTTPError β If the server request fails.