Structuremacpaw.openai 0.3.2OpenAI
ThreadsMessageContent
ThreadsMessagesResult.swift:14struct ThreadsMessageContent
struct ThreadsMessageContent
s6OpenAI21ThreadsMessagesResultV0C7MessageV0cF7ContentV
What are these?7U8YN
import OpenAI
struct ThreadsMessage
struct ThreadsMessagesResult
init(from decoder: any Decoder) throws
let content: [ThreadsMessageContent]
let id: String
let role: ChatQuery.ChatCompletionMessageParam.Role
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
init(from decoder: any Decoder) throws
let imageFile: ThreadsMessageContentText?
let text: ThreadsMessageContentText?
let type: ContentType
enum ContentType
struct ImageFileContentText
struct ThreadsMessageContentText
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.