Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 committed Mar 3, 2024
1 parent d4f8ca4 commit 1495b0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2971,7 +2971,14 @@ def create_feedback(
or freeform.
stop_after_attempt : int, default=10
The number of times to retry the request before giving up.
session_id : str or UUID
The ID of the session to provide feedback on. One - and only one - of
this and run_id must be provided.
"""
if run_id is None and session_id is None:
raise ValueError("One of run_id and session_id must be provided")
if run_id is not None and session_id is not None:
raise ValueError("Only one of run_id and session_id must be provided")
if kwargs:
warnings.warn(
"The following arguments are no longer used in the create_feedback"
Expand Down

0 comments on commit 1495b0b

Please sign in to comment.