iCloud Backup, better chatview exp. bugfixes++

This commit is contained in:
2026-02-27 14:05:11 +01:00
parent 3997f3feee
commit e9d0ad3c66
11 changed files with 634 additions and 30 deletions

View File

@@ -31,6 +31,14 @@ enum MessageRole: String, Codable {
case system
}
/// Detail for a single tool call within a system "🔧 Calling:" message.
/// Not persisted in-memory only.
struct ToolCallDetail {
let name: String
let input: String // raw JSON string of arguments
var result: String? // raw JSON string of result (nil while pending)
}
struct Message: Identifiable, Codable, Equatable {
let id: UUID
let role: MessageRole
@@ -52,6 +60,9 @@ struct Message: Identifiable, Codable, Equatable {
// Generated images from image-output models (base64-decoded PNG/JPEG data)
var generatedImages: [Data]? = nil
// Tool call details (not persisted in-memory only for expandable display)
var toolCalls: [ToolCallDetail]? = nil
init(
id: UUID = UUID(),
role: MessageRole,