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
PythonlangsmithschemasPromptCommit
Class●Since v0.1

PromptCommit

Represents a Prompt with a manifest.

Copy
PromptCommit()

Bases

BaseModel

Attributes

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Mto_json
View source on GitHub
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

Mconstruct
Mmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
model_config
attribute
owner: str
attribute
repo: str
attribute
commit_hash: str
attribute
manifest: dict[str, Any]
attribute
examples: list[dict]
attribute
description: Optional[str]
attribute
hub_model_config: Optional[dict]
attribute
hub_model_provider: Optional[str]

The handle of the owner of the prompt.

The name of the prompt.

The commit hash of the prompt.

The manifest of the prompt.

The list of examples.

Optional human-readable description for the commit.

The model configuration for the prompt.

The model provider (e.g. ChatOpenAI).