langsmith.client.Client.create_presigned_feedback_tokens#
- Client.create_presigned_feedback_tokens(run_id: UUID | str, feedback_keys: Sequence[str], *, expiration: datetime | timedelta | None = None, feedback_configs: Sequence[FeedbackConfig | None] | None = None) Sequence[FeedbackIngestToken][source]#
Create a pre-signed URL to send feedback data to.
This is useful for giving browser-based clients a way to upload feedback data directly to LangSmith without accessing the API key.
- Parameters:
run_id (UUID | str) –
feedback_key –
expiration (datetime | timedelta | None) – The expiration time of the pre-signed URL. Either a datetime or a timedelta offset from now. Default to 3 hours.
feedback_config – FeedbackConfig or None. If creating a feedback_key for the first time, this defines how the metric should be interpreted, such as a continuous score (w/ optional bounds), or distribution over categorical values.
feedback_keys (Sequence[str]) –
feedback_configs (Sequence[FeedbackConfig | None] | None) –
- Returns:
The pre-signed URL for uploading feedback data.
- Return type:
Sequence[FeedbackIngestToken]