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

update_dataset_tag

Copy
update_dataset_tag(
  self,
  *,
  dataset_id: Optional[ID_TYPE] = None,
  dataset_name: Optional[
View source on GitHub
str
]
=
None
,
as_of
:
datetime
.
datetime
,
tag
:
str
)
->
None

Parameters

NameTypeDescription
dataset_idOptional[Union[UUID, str]]
Default:None

The ID of the dataset to update.

dataset_nameOptional[str]
Default:None
as_of*datetime.datetime
tag*str

Update the tags of a dataset.

If the tag is already assigned to a different version of this dataset, the tag will be moved to the new version. The as_of parameter is used to determine which version of the dataset to apply the new tags to. It must be an exact version of the dataset to succeed. You can use the read_dataset_version method to find the exact version to apply the tags to.

The name of the dataset to update.

The timestamp of the dataset to apply the new tags to.

The new tag to apply to the dataset.