langsmith.client.Client.create_commit#
- Client.create_commit(prompt_identifier: str, object: Any, *, parent_commit_hash: str | None = None) str[source]#
Create a commit for an existing prompt.
- Parameters:
prompt_identifier (str) – The identifier of the prompt.
object (Any) – The LangChain object to commit.
parent_commit_hash (Optional[str]) – The hash of the parent commit. Defaults to latest commit.
- Returns:
The url of the prompt commit.
- Return type:
str
- Raises:
HTTPError – If the server request fails.
ValueError – If the prompt does not exist.