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

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithclientClientupdate_feedback
Methodā—Since v0.0

update_feedback

Copy
update_feedback(
  self,
  feedback_id: ID_TYPE,
  *,
  score: Union[float, int, 
View source on GitHub
bool
,
None
]
=
None
,
value
:
Union
[
float
,
int
,
bool
,
str
,
dict
,
None
]
=
None
,
correction
:
Union
[
dict
,
None
]
=
None
,
comment
:
Union
[
str
,
None
]
=
None
)
->
None

Parameters

NameTypeDescription
feedback_id*Union[UUID, str]

The ID of the feedback to update.

scoreOptional[Union[float, int, bool]]
Default:None
valueOptional[Union[float, int, bool, str, dict]]
Default:None
correctionOptional[dict]
Default:None
commentOptional[str]
Default:None

Update a feedback in the LangSmith API.

The score to update the feedback with.

The value to update the feedback with.

The correction to update the feedback with.

The comment to update the feedback with.