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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithasync_clientAsyncClientadd_feedback_categories
Method●Since v0.15

add_feedback_categories

Copy
add_feedback_categories(
  self,
  feedback_key: str,
  categories: Sequence[ls_schemas.FeedbackCategory],
  *,
  
View source on GitHub
config_id
:
Optional
[
ID_TYPE
]
=
None
)
->
ls_schemas
.
FeedbackConfigSchema

Parameters

NameTypeDescription
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_idOptional[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.