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

Prompt

Represents a Prompt with metadata.

Copy
Prompt()

Bases

BaseModel

Attributes

View source on GitHub
attribute
repo_handle: str
attribute
description: Optional[str]
attribute
readme: Optional[str]
attribute
id: str
attribute
tenant_id: str
attribute
created_at: datetime
attribute
updated_at: datetime
attribute
is_public: bool
attribute
is_archived: bool
attribute
tags: list[str]
attribute
original_repo_id: Optional[str]
attribute
upstream_repo_id: Optional[str]
attribute
owner: Optional[str]
attribute
full_name: str
attribute
num_likes: int
attribute
num_downloads: int
attribute
num_views: int
attribute
liked_by_auth_user: Optional[bool]
attribute
last_commit_hash: Optional[str]
attribute
num_commits: int
attribute
original_repo_full_name: Optional[str]
attribute
upstream_repo_full_name: Optional[str]

The name of the prompt.

The description of the prompt.

The README of the prompt.

The ID of the prompt.

The tenant ID of the prompt owner.

The creation time of the prompt.

The last update time of the prompt.

Whether the prompt is public.

Whether the prompt is archived.

The tags associated with the prompt.

The ID of the original prompt, if forked.

The ID of the upstream prompt, if forked.

The handle of the owner of the prompt.

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

The number of likes.

The number of downloads.

The number of views.

Whether the prompt is liked by the authenticated user.

The hash of the last commit.

The number of commits.

The full name of the original prompt, if forked.

The full name of the upstream prompt, if forked.