Skip to content

Commit

Permalink
fix: add default value in deprecated argument (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swalloow authored Jan 6, 2025
1 parent e54ab93 commit b8bca23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langfuse/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3178,22 +3178,22 @@ def flush(self, observation: StatefulClient, run_name: str):

def link(
self,
trace_or_observation: typing.Union[StatefulClient, str, None],
run_name: str,
run_metadata: Optional[Any] = None,
run_description: Optional[str] = None,
trace_id: Optional[str] = None,
observation_id: Optional[str] = None,
trace_or_observation: typing.Union[StatefulClient, str, None] = None,
):
"""Link the dataset item to observation within a specific dataset run. Creates a dataset run item.
Args:
trace_or_observation (Union[StatefulClient, str, None]): The trace or observation object to link. Deprecated: can also be an observation ID.
run_name (str): The name of the dataset run.
run_metadata (Optional[Any]): Additional metadata to include in dataset run.
run_description (Optional[str]): Description of the dataset run.
trace_id (Optional[str]): The trace ID to link to the dataset item. Set trace_or_observation to None if trace_id is provided.
observation_id (Optional[str]): The observation ID to link to the dataset item (optional). Set trace_or_observation to None if trace_id is provided.
trace_or_observation (Union[StatefulClient, str, None]): The trace or observation object to link. Deprecated: can also be an observation ID.
"""
parsed_trace_id: str = None
parsed_observation_id: str = None
Expand Down

0 comments on commit b8bca23

Please sign in to comment.