chore: use a Conversation type (#3735)

This commit is contained in:
Jack Amadeo
2025-08-06 22:06:13 -04:00
committed by GitHub
parent 17ea675def
commit 5eb01004a4
90 changed files with 994 additions and 790 deletions
+4 -4
View File
@@ -782,10 +782,10 @@ async fn test_schedule_tool_session_content_action_with_real_session() {
// Create test metadata and messages
let metadata = create_test_session_metadata(2, "/tmp");
let messages = vec![
goose::message::Message::user().with_text("Hello"),
goose::message::Message::assistant().with_text("Hi there!"),
];
let messages = goose::conversation::Conversation::new_unvalidated(vec![
goose::conversation::message::Message::user().with_text("Hello"),
goose::conversation::message::Message::assistant().with_text("Hi there!"),
]);
// Save the session file
goose::session::storage::save_messages_with_metadata(&session_path, &metadata, &messages)