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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithclientClientcreate_feedback_from_token
Method●Since v0.1

create_feedback_from_token

Create feedback from a presigned token or URL.

Copy
create_feedback_from_token(
  self,
  token_or_url: Union[str, uuid.UUID],
  score: Union[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.

scoreOptional[Union[float, int, bool]]
Default:None

The score of the feedback.

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

The value of the feedback.

correctionOptional[dict]
Default:None

The correction of the feedback.

commentOptional[str]
Default:None

The comment of the feedback.

metadataOptional[dict]
Default:None

Additional metadata for the feedback.

View source on GitHub