add uuid to metadata

This commit is contained in:
Roy Han
2026-03-19 09:47:54 -07:00
parent 1879c53d6e
commit 2fc35f8b6b
11 changed files with 251 additions and 5 deletions
+8 -3
View File
@@ -3277,9 +3277,14 @@ impl Session {
turn_context: &TurnContext,
items: &[ResponseItem],
) {
self.record_into_history(items, turn_context).await;
self.persist_rollout_response_items(items).await;
self.send_raw_response_items(turn_context, items).await;
let items: Vec<ResponseItem> = items
.iter()
.cloned()
.map(ResponseItem::with_generated_metadata_uuid)
.collect();
self.record_into_history(&items, turn_context).await;
self.persist_rollout_response_items(&items).await;
self.send_raw_response_items(turn_context, &items).await;
}
/// Append ResponseItems to the in-memory conversation history only.