langsmith.client.Client.update_run#
- Client.update_run(run_id: UUID | str, *, name: str | None = None, end_time: datetime | None = None, error: str | None = None, inputs: Dict | None = None, outputs: Dict | None = None, events: Sequence[dict] | None = None, extra: Dict | None = None, tags: List[str] | None = None, attachments: Dict[str, tuple[str, bytes] | Attachment] | None = None, **kwargs: Any) None[source]#
Update a run in the LangSmith API.
- Parameters:
run_id (str or UUID) – The ID of the run to update.
name (str or None, default=None) – The name of the run.
end_time (datetime or None) – The end time of the run.
error (str or None, default=None) – The error message of the run.
inputs (Dict or None, default=None) – The input values for the run.
outputs (Dict or None, default=None) – The output values for the run.
events (Sequence[dict] or None, default=None) – The events for the run.
extra (Dict or None, default=None) – The extra information for the run.
tags (List[str] or None, default=None) – The tags for the run.
attachments (dict[str, ls_schemas.Attachment] or None, default=None) – A dictionary of attachments to add to the run. The keys are the attachment names, and the values are Attachment objects containing the data and mime type.
**kwargs (Any) – Kwargs are ignored.
- Return type:
None