AiThreadPart class

One part of a thread message: text, an image URL (data: or https), or an image in project storage (read under the caller's storage policies).

Constructors

AiThreadPart.fromJson(Map<String, dynamic> j)
factory
AiThreadPart.image(String url)
const
AiThreadPart.storage({required String bucket, required String path})
const
AiThreadPart.text(String text)
const

Properties

bucket → String?
final
hashCode → int
The hash code for this object.
no setterinherited
path → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String?
final
type → String
text or image.
final
url → String?
final

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.
inherited

Operators

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