add_feedback_categories(
self,
feedback_key: str,
categories: Sequence[ls_schemas.FeedbackCategory],
*,
Add categories to a categorical feedback configuration.
The existing categories and allows_multiple_categories are kept.
Self-hosted deployments need LangSmith v0.18 or later;
older versions ignore the change and return the configuration
unchanged.
Example:
.. code-block:: python
from langsmith import Client
client = Client() client.add_feedback_categories("topics", [{"value": 2, "label": "returns"}])
The configuration to update, for keys with more than one. When omitted, the key's enforced configuration is updated, or else its first one, or else its most recently modified one.