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
PythonlangsmithclientClientcreate_prompt
Method●Since v0.1

create_prompt

Create a new prompt.

Does not attach prompt object, just creates an empty prompt.

Copy
create_prompt(
  self,
  prompt_identifier: str,
  *,
  description: Optional[str] = None,
  readme: Optional[str] = None,
  tags: Optional[Sequence[str]] = None,
  is_public: bool = False
) -> ls_schemas.Prompt

Parameters

NameTypeDescription
prompt_identifier*str

The identifier of the prompt. The identifier should be in the formatof owner/name:hash, name:hash, owner/name, or name

descriptionOptional[str]
Default:None

A description of the prompt.

readmeOptional[str]
Default:None

A readme for the prompt.

tagsOptional[Sequence[str]]
Default:None

A list of tags for the prompt.

is_publicbool
Default:False

Whether the prompt should be public.

View source on GitHub