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_clientAsyncClientupdate_feedback_config
Method●Since v0.14

update_feedback_config

Copy
update_feedback_config(
  self,
  feedback_key: str,
  *,
  feedback_config: Optional[ls_schemas.FeedbackConfig] 
View source on GitHub
=
None
,
is_lower_score_better
:
Optional
[
bool
]
=
None
,
config_id
:
Optional
[
ID_TYPE
]
=
None
)
->
ls_schemas
.
FeedbackConfigSchema

Parameters

NameTypeDescription
feedback_key*str

The feedback key of the configuration to update.

feedback_configOptional[ls_schemas.FeedbackConfig]
Default:None

The new configuration values. Replaces the whole configuration, so include allows_multiple_categories to keep a multi-select tag multi-select.

is_lower_score_betterOptional[bool]
Default:None
config_idOptional[ID_TYPE]
Default:None

Update a feedback configuration.

Only the provided fields will be updated; others remain unchanged.

Whether a lower score is considered better.

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. Self-hosted deployments need LangSmith v0.18 or later.