ResourcePart class

Inheritance
Annotations
  • @JsonSerializable(explicitToJson: true, includeIfNull: false)

Constructors

ResourcePart.new({dynamic text, dynamic media, dynamic toolRequest, dynamic toolResponse, dynamic data, dynamic metadata, dynamic custom, dynamic reasoning, required Map<String, dynamic>? resource})
ResourcePart.fromJson(Map<String, dynamic> json)
factory

Properties

custom → dynamic
final
data → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
media → dynamic
final
metadata → dynamic
final
reasoning → dynamic
final
resource Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text → dynamic
final
toolRequest → dynamic
final
toolResponse → dynamic
final

Methods

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

Operators

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