Skip to content

The MessageAttachment struct doesn't have a public initializer #85

@ADiamondDeveloper

Description

@ADiamondDeveloper
public struct MessageAttachment: Codable {
    let fileID: String
    let tools: [AssistantObject.Tool]
    
    enum CodingKeys: String, CodingKey {
        case fileID = "file_id"
        case tools
    }

    public init(fileID: String, tools: [AssistantObject.Tool]) {
        self.fileID = fileID
        self.tools = tools
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions