List commits for a given prompt.
list_prompt_commits(
self,
prompt_identifier: str,
*,
limit: Optional[int] = None,
offset: int = 0,
include_model: bool = False
) -> Iterator[ls_schemas.ListedPromptCommit]This method uses pagination to retrieve commits. It will make multiple API calls if necessary to retrieve all commits or up to the specified limit.
| Name | Type | Description |
|---|---|---|
prompt_identifier* | str | The identifier of the prompt in the format 'owner/repo_name'. |
limit | Optional[int] | Default: NoneThe maximum number of commits to return. If None, returns all commits. |
offset | int, default=0 | Default: 0The number of commits to skip before starting to return results. |
include_model | bool, default=False | Default: FalseWhether to include the model information in the commit data. |