LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithclientClientlist_prompt_commits
Method●Since v0.1

list_prompt_commits

Copy
list_prompt_commits(
  self,
  prompt_identifier: str,
  *,
  limit: Optional[int] = None
View source on GitHub
,
offset
:
int
=
0
,
include_model
:
bool
=
False
)
->
Iterator
[
ls_schemas
.
ListedPromptCommit
]

Parameters

NameTypeDescription
prompt_identifier*str

The identifier of the prompt in the format 'owner/repo_name'.

limitOptional[int]
Default:None

The maximum number of commits to return. If None, returns all commits.

offsetint, default=0
Default:0
include_modelbool, default=False
Default:False

List commits for a given prompt.

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.

The number of commits to skip before starting to return results.

Whether to include the model information in the commit data.