@@ -562,9 +562,7 @@ def update_current_trace(**kwargs) -> None:
562562
563563def update_current_span (
564564 attributes : Optional [Dict [str , Any ]] = None ,
565- metadata : Optional [Dict [str , Any ]] = None ,
566- test_case : Optional ['traces.LLMTestCase' ] = None ,
567- feedback : Optional ['traces.Feedback' ] = None ,
565+ metadata : Optional [Dict [str , Any ]] = None
568566) -> None :
569567 """Updates the current step (span) with the provided attributes.
570568
@@ -574,16 +572,14 @@ def update_current_span(
574572 Args:
575573 attributes: Optional dictionary of attributes to set on the step
576574 metadata: Optional dictionary of metadata to merge with existing metadata
577- test_case: Optional LLM test case data
578- feedback: Optional feedback data
579575
580576 Example:
581- >>> import openlayer
577+ >>> from openlayer.lib import trace, update_current_span
582578 >>>
583- >>> @openlayer. trace()
579+ >>> @trace()
584580 >>> def my_function():
585581 >>> # Update current step with additional context
586- >>> openlayer. update_current_span(
582+ >>> update_current_span(
587583 >>> metadata={"model_version": "v1.2.3"}
588584 >>> )
589585 >>> return "result"
@@ -605,12 +601,6 @@ def update_current_span(
605601 existing_metadata .update (metadata )
606602 update_data ["metadata" ] = existing_metadata
607603
608- if test_case is not None :
609- update_data ["test_case" ] = test_case
610-
611- if feedback is not None :
612- update_data ["feedback" ] = feedback
613-
614604 # Handle generic attributes by setting them directly on the step
615605 if attributes is not None :
616606 for key , value in attributes .items ():
0 commit comments