MessageContentPart class abstract interface

A content part that can appear inside a response-side Message.

Per the spec's Message.content union, response messages may carry both input content (input_text, input_image, input_file, input_video) and output content (output_text, reasoning_text, summary_text, refusal). Stored or compacted history echoes prior user messages whose parts are input_*, while the model's own messages emit output_*.

Both InputContent and OutputContent sealed hierarchies implement this interface so MessageOutputItem.content can hold either.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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