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
Pythonlangsmithasync_clientAsyncClientcreate_feedback_from_token
Method●Since v0.1

create_feedback_from_token

Copy
create_feedback_from_token(
  self,
  token_or_url: Union[str, uuid.UUID],
  score: Union
View source on GitHub
[
float
,
int
,
bool
,
None
]
=
None
,
*
,
value
:
Union
[
float
,
int
,
bool
,
str
,
dict
,
None
]
=
None
,
correction
:
Union
[
dict
,
None
]
=
None
,
comment
:
Union
[
str
,
None
]
=
None
,
metadata
:
Optional
[
dict
]
=
None
)
->
None

Parameters

NameTypeDescription
token_or_url*Union[str, uuid.UUID]

The token or URL from which to create feedback.

scoreUnion[float, int, bool, None]
Default:None
valueUnion[float, int, bool, str, dict, None]
Default:None
correctionUnion[dict, None]
Default:None
commentUnion[str, None]
Default:None
metadataOptional[dict]
Default:None

Create feedback from a presigned token or URL.

The score of the feedback.

The value of the feedback.

The correction of the feedback.

The comment of the feedback.

Additional metadata for the feedback.