iCloud Backup, better chatview exp. bugfixes++
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user