add_feedback_categories(
self,
feedback_key: str,
categories: Sequence[ls_schemas.FeedbackCategory],
*,
| Name | Type | Description |
|---|---|---|
feedback_key* | str | The feedback key of the configuration to update. |
categories* | Sequence[ls_schemas.FeedbackCategory] | The categories to add. Values and labels must not clash with existing ones. |
config_id | Optional[ID_TYPE] | Default: None |
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.
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.