|
|
|
|
@ -95,6 +95,9 @@ class WorkflowIterationCycleManage(WorkflowCycleStateManager):
|
|
|
|
|
error=None,
|
|
|
|
|
elapsed_time=time.perf_counter() - current_iteration.started_at,
|
|
|
|
|
total_tokens=current_iteration.total_tokens,
|
|
|
|
|
execution_metadata={
|
|
|
|
|
'total_tokens': current_iteration.total_tokens,
|
|
|
|
|
},
|
|
|
|
|
finished_at=int(time.time()),
|
|
|
|
|
steps=current_iteration.current_index
|
|
|
|
|
)
|
|
|
|
|
@ -276,7 +279,10 @@ class WorkflowIterationCycleManage(WorkflowCycleStateManager):
|
|
|
|
|
error=error,
|
|
|
|
|
elapsed_time=time.perf_counter() - current_iteration.started_at,
|
|
|
|
|
total_tokens=current_iteration.total_tokens,
|
|
|
|
|
execution_metadata={
|
|
|
|
|
'total_tokens': current_iteration.total_tokens,
|
|
|
|
|
},
|
|
|
|
|
finished_at=int(time.time()),
|
|
|
|
|
steps=current_iteration.current_index
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|