| Name | Type | Description |
|---|---|---|
feedback_id* | Union[UUID, str] | The ID of the feedback to update. |
score | Optional[Union[float, int, bool]] | Default: cast(Any, _UNSET) |
value | Optional[Union[float, int, bool, str, dict]] | Default: cast(Any, _UNSET) |
correction | Optional[dict] | Default: cast(Any, _UNSET) |
comment | Optional[str] | Default: cast(Any, _UNSET) |
Update a feedback in the LangSmith API.
Only the fields you pass are changed. Pass None to clear a field;
omit it to keep its current value.
Example:
.. code-block:: python
from langsmith import Client
client = Client()
client.update_feedback(feedback_id, score=0.5, comment=None)
The score to update the feedback with. Floats are rounded to 4 decimal places, the most the API stores; the API rejects more precise scores sent to it directly.
The value to update the feedback with.
The correction to update the feedback with.
The comment to update the feedback with.