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

update_prompt

Update a prompt's metadata.

To update the content of a prompt, use push_prompt or create_commit instead.

Copy
update_prompt(
  self,
  prompt_identifier: str,
  *,
  description: Optional[str] = None,
  readme: Optional[str] = None,
  tags: Optional[Sequence[str]] = None,
  is_public: Optional[bool] = None,
  is_archived: Optional[bool] = None
) -> dict[str, Any]

Parameters

NameTypeDescription
prompt_identifier*str

The identifier of the prompt to update.

descriptionOptional[str]
Default:None

New description for the prompt.

readmeOptional[str]
Default:None

New readme for the prompt.

tagsOptional[Sequence[str]]
Default:None

New list of tags for the prompt.

is_publicOptional[bool]
Default:None

New public status for the prompt.

is_archivedOptional[bool]
Default:None

New archived status for the prompt.

View source on GitHub