fix(ops): correct LangSmith dotted_order timestamp format (#30022)

This commit is contained in:
ericko-being
2025-12-23 20:00:17 +09:00
committed by GitHub
parent b321511518
commit 3f27b3f0b4
2 changed files with 53 additions and 2 deletions

View File

@ -54,7 +54,7 @@ def generate_dotted_order(run_id: str, start_time: Union[str, datetime], parent_
generate dotted_order for langsmith
"""
start_time = datetime.fromisoformat(start_time) if isinstance(start_time, str) else start_time
timestamp = start_time.strftime("%Y%m%dT%H%M%S%f")[:-3] + "Z"
timestamp = start_time.strftime("%Y%m%dT%H%M%S%f") + "Z"
current_segment = f"{timestamp}{run_id}"
if parent_dotted_order is None: