session-log-decouple-item実装

This commit is contained in:
2026-04-29 22:24:18 +09:00
parent 913ee4764a
commit 8a9e3b4fe3
6 changed files with 362 additions and 30 deletions
+5 -2
View File
@@ -25,7 +25,7 @@ async fn round_trip_write_and_read() {
},
LogEntry::AssistantItems {
ts: 3000,
items: vec![Item::assistant_message("Hi there!")],
items: vec![Item::assistant_message("Hi there!").into()],
},
LogEntry::TurnEnd {
ts: 3100,
@@ -74,7 +74,10 @@ async fn create_session_writes_all_entries() {
ts: 1000,
system_prompt: None,
config: RequestConfig::default(),
history: vec![Item::user_message("seed"), Item::assistant_message("ok")],
history: vec![
Item::user_message("seed").into(),
Item::assistant_message("ok").into(),
],
forked_from: None,
compacted_from: None,
}]);