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_formula
Method●Since v0.4

update_feedback_formula

Copy
update_feedback_formula(
  self,
  feedback_formula_id: ID_TYPE,
  *,
  feedback_key: str,
  aggregation_type: Literal
View source on GitHub
[
'sum'
,
'avg'
]
,
formula_parts
:
Sequence
[
Union
[
ls_schemas
.
FeedbackFormulaWeightedVariable
,
dict
]
]
)
->
ls_schemas
.
FeedbackFormula

Parameters

NameTypeDescription
feedback_formula_id*Union[UUID, str]

The ID of the feedback formula to update.

feedback_key*str

The feedback key for the formula.

aggregation_type*Literal['sum', 'avg']
formula_parts*Sequence[FeedbackFormulaWeightedVariable | dict]

Update a feedback formula.

The aggregation type to use when combining parts.

The weighted feedback keys included in the formula.