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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithschemasPrompt
Class●Since v0.1

Prompt

Represents a Prompt with metadata.

Copy
Prompt()

Bases

BaseModel

Attributes

attribute
repo_handle: str

The name of the prompt.

attribute
description: Optional[str]

The description of the prompt.

attribute
readme: Optional[str]

The README of the prompt.

attribute
id: str

The ID of the prompt.

attribute
tenant_id: str

The tenant ID of the prompt owner.

attribute
created_at: datetime

The creation time of the prompt.

attribute
updated_at: datetime

The last update time of the prompt.

attribute
is_public: bool

Whether the prompt is public.

attribute
is_archived: bool

Whether the prompt is archived.

attribute
tags: list[str]

The tags associated with the prompt.

attribute
original_repo_id: Optional[str]

The ID of the original prompt, if forked.

attribute
upstream_repo_id: Optional[str]

The ID of the upstream prompt, if forked.

attribute
owner: Optional[str]

The handle of the owner of the prompt.

attribute
full_name: str

The full name of the prompt. (owner + repo_handle)

attribute
num_likes: int

The number of likes.

attribute
num_downloads: int

The number of downloads.

attribute
num_views: int

The number of views.

attribute
liked_by_auth_user: Optional[bool]

Whether the prompt is liked by the authenticated user.

attribute
last_commit_hash: Optional[str]

The hash of the last commit.

attribute
num_commits: int

The number of commits.

attribute
original_repo_full_name: Optional[str]

The full name of the original prompt, if forked.

attribute
upstream_repo_full_name: Optional[str]

The full name of the upstream prompt, if forked.

View source on GitHub