ThreadMessage class
Constructors
-
ThreadMessage({required String id, @Default('thread.message') String object, required int createdAt, required String threadId, required String role, required List<Content> content, @Default([]) List<String> fileIds, String? assistantId, String? runId, @Default({}) Map<String, dynamic> metadata})
-
const
factory
-
ThreadMessage.fromJson(Map<String, dynamic> json)
-
factory
Properties
-
assistantId
→ String?
-
The ID of the assistant, if this message is from an assistant.
no setterinherited
-
content
→ List<Content>
-
The content of the message, usually a list of message parts (like text blocks).
no setterinherited
-
copyWith
→ $ThreadMessageCopyWith<ThreadMessage>
-
no setterinherited
-
createdAt
→ int
-
The Unix timestamp (in seconds) of when the thread message was created.
no setterinherited
-
fileIds
→ List<String>
-
A list of file IDs associated with this message, if any.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String
-
A unique identifier for the thread message.
no setterinherited
-
metadata
→ Map<String, dynamic>
-
An optional metadata object. Can be used to store additional information.
no setterinherited
-
object
→ String
-
The object type which is always 'thread.message'.
no setterinherited
-
role
→ String
-
The role of the message sender, e.g., 'user' or 'assistant'.
no setterinherited
-
runId
→ String?
-
The ID of the run, if this message is associated with a specific run.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
threadId
→ String
-
The ID of the thread this message belongs to.
no setterinherited