update_current_trace

opik.opik_context.update_current_trace(name: str | None = None, input: Dict[str, Any] | None = None, output: Dict[str, Any] | None = None, metadata: Dict[str, Any] | None = None, tags: List[str] | None = None, feedback_scores: List[FeedbackScoreDict] | None = None) None

Update the current trace with the provided parameters. This method is usually called within a tracked function.

Parameters:
  • name – The name of the trace.

  • input – The input data of the trace.

  • output – The output data of the trace.

  • metadata – The metadata of the trace.

  • tags – The tags of the trace.

  • feedback_scores – The feedback scores of the trace.