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
Pythonlangsmithasync_clientAsyncClientcreate_commit
Method●Since v0.3

create_commit

Create a commit for an existing prompt.

Copy
create_commit( self, prompt_identifier: str, object: Any, *, parent_commit_hash: Optional[str] = None, tags: Optional[str | list[str]] = None ) -> str

Parameters

NameTypeDescription
prompt_identifier*str

The identifier of the prompt.

object*Any

The LangChain object to commit.

parent_commit_hashOptional[str]
Default:None

The hash of the parent commit.

Defaults to latest commit.

tagsOptional[str | list[str]]
Default:None

A single tag or list of tags to apply to the commit.

Defaults to None.

View source on GitHub