iOS/Sources/Shared/Assist/AssistChatItem.swift

21 lines
478 B
Swift

import Foundation
public struct AssistChatItem: Equatable {
public init(id: String = UUID().uuidString, content: String, itemType: AssistChatItem.ItemType) {
self.id = id
self.content = content
self.itemType = itemType
}
public var id: String = UUID().uuidString
public let content: String
public let itemType: ItemType
public enum ItemType {
case input
case output
case error
case info
}
}