Update an existing prompt’s name or description
update()
and aupdate()
methods allow you to modify an existing prompt’s name or description. Use update()
for synchronous operations and aupdate()
for asynchronous operations.
name
(string, optional): New name for the promptdescription
(string, optional): New description for the promptid
(string): The prompt’s unique identifiername
(string): The prompt’s namedescription
(string): The prompt’s descriptioncontent
(string): The prompt’s contentvariables
(list): List of variables in the promptmetadata
(dict): Additional metadatacreated_at
(string): Creation timestampupdated_at
(string): Last update timestamp