GptAssistantMessage class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

GptAssistantMessage({required String id, String object = "thread.message", required String threadId, Map<String, dynamic>? metadata, required List<String> fileIds, required List<GptThreadContent> content, required GptThreadRole role, required int createdAt, String? assistantId, String? runId})
GptAssistantMessage.fromJson(Map<String, dynamic> json)
factory

Properties

assistantId String?
If applicable, the ID of the assistant that authored this message.
getter/setter pair
content List<GptThreadContent>
The content of the message in array of text and/or images.
getter/setter pair
createdAt int
The Unix timestamp (in seconds) for when the message was created.
getter/setter pair
fileIds List<String>
A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The identifier, which can be referenced in API endpoints.
getter/setter pair
metadata Map<String, dynamic>?
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
getter/setter pair
object String
The object type, which is always thread.message.
getter/setter pair
role GptThreadRole
The entity that produced the message. One of user or assistant.
getter/setter pair
runId String?
If applicable, the ID of the run associated with the authoring of this message.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadId String
The thread ID that this message belongs to.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited