| Name | Type | Description |
|---|---|---|
prompt_identifier* | str | The identifier of the prompt. |
object | Optional[Any] | Default: NoneThe LangChain object to push. |
parent_commit_hash | str | Default: 'latest' |
is_public | Optional[bool] | Default: None |
description | Optional[str] | Default: None |
readme | Optional[str] | Default: None |
tags | Optional[Sequence[str]] | Default: None |
commit_tags | Optional[str | list[str]] | Default: None |
commit_description | Optional[str] | Default: None |
Push a prompt to the LangSmith API.
Can be used to update prompt metadata or prompt content.
If the prompt does not exist, it will be created. If the prompt exists, it will be updated.
The parent commit hash. Defaults to "latest".
Whether the prompt should be public. If None (default), the current visibility status is maintained for existing prompts. For new prompts, None defaults to private. Set to True to make public, or False to make private.
A description of the prompt. Defaults to an empty string.
A readme for the prompt. Defaults to an empty string.
A list of tags for the prompt. Defaults to an empty list.
A single tag or list of tags for the prompt commit. Defaults to an empty list.
Optional human-readable description for the commit (max 1000 chars). Defaults to None.