langsmith.client.Client.create_feedback_from_token#

Client.create_feedback_from_token(token_or_url: str | UUID, score: float | int | bool | None = None, *, value: float | int | bool | str | dict | None = None, correction: dict | None = None, comment: str | None = None, metadata: dict | None = None) None[source]#

Create feedback from a presigned token or URL.

Parameters:
  • token_or_url (Union[str, uuid.UUID]) – The token or URL from which to create feedback.

  • score (Union[float, int, bool, None], optional) – The score of the feedback. Defaults to None.

  • value (Union[float, int, bool, str, dict, None], optional) – The value of the feedback. Defaults to None.

  • correction (Union[dict, None], optional) – The correction of the feedback. Defaults to None.

  • comment (Union[str, None], optional) – The comment of the feedback. Defaults to None.

  • metadata (Optional[dict], optional) – Additional metadata for the feedback. Defaults to None.

Raises:

ValueError – If the source API URL is invalid.

Returns:

This method does not return anything.

Return type:

None