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
PythonlangsmithschemasFeedbackCreate
Class●Since v0.0

FeedbackCreate

Schema used for creating feedback.

Copy
FeedbackCreate()

Bases

FeedbackBase

Attributes

Inherited fromFeedbackBase

Attributes

Aid: UUID
—

The unique ID of the feedback.

Acreated_at: Optional[datetime]
—

The time the feedback was created.

Amodified_at: Optional[datetime]
—

The time the feedback was last modified.

A
View source on GitHub
run_id
: Optional[UUID]
—

The associated run ID this feedback is logged for.

Atrace_id: Optional[UUID]
—

The associated trace ID this feedback is logged for.

Akey: str
—

The metric name, tag, or aspect to provide feedback on.

Ascore: SCORE_TYPE
—

Value or score to assign the run.

Avalue: VALUE_TYPE
—

The display value, tag or other value for the feedback if not a metric.

Acomment: Optional[str]
—

Comment or explanation for the feedback.

Acorrection: Union[str, dict, None]
—

Correction for the run.

Asession_id: Optional[UUID]
—

The associated project ID (Session = Project) this feedback is logged for.

Astart_time: Optional[datetime]
—

The start time of the run this feedback is associated with.

Acomparative_experiment_id: Optional[UUID]
—

If logged within a 'comparative experiment', this is the ID of the experiment.

Afeedback_group_id: Optional[UUID]
—

For preference scoring, this group ID is shared across feedbacks for each

Aextra: Optional[dict]
—

The metadata of the feedback.

Amodel_config

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_config: ConfigDictAmodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Mto_json
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

MconstructMmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
feedback_source: FeedbackSourceBase

The source of the feedback.

attribute
feedback_config: Optional[FeedbackConfig]

The config for the feedback

attribute
extend_trace_retention: bool

When true, extend trace retention as a side effect of creating this feedback.

attribute
error: Optional[bool]