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
PythonlangsmithclientClientupdate_prompt
Methodā—Since v0.1

update_prompt

Copy
update_prompt(
  self,
  prompt_identifier: str,
  *,
  description: Optional[str] = 
View source on GitHub
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
tagsOptional[Sequence[str]]
Default:None
is_publicOptional[bool]
Default:None
is_archivedOptional[bool]
Default:None

Update a prompt's metadata.

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

New readme for the prompt.

New list of tags for the prompt.

New public status for the prompt.

New archived status for the prompt.