Create a commit for an existing prompt.
create_commit(
self,
prompt_identifier: str,
object: Any,
*,
parent_commit_hash: Optional[str] = None,
tags: Optional[str | list[str]] = None,
description: Optional[str] = None
) -> str| Name | Type | Description |
|---|---|---|
prompt_identifier* | str | The identifier of the prompt. |
object* | Any | The LangChain object to commit. |
parent_commit_hash | Optional[str] | Default: NoneThe hash of the parent commit. Defaults to latest commit. |
tags | Optional[str | list[str]] | Default: NoneA single tag or list of tags to apply to the commit. Defaults to None. |
description | Optional[str] | Default: NoneOptional human-readable description for the commit (max 1000 chars). Defaults to None. |