ChatCompletionUserMessageContent class sealed

The contents of the user message.

Implementers
Annotations
  • @freezed

Constructors

ChatCompletionUserMessageContent.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory
ChatCompletionUserMessageContent.parts(List<ChatCompletionMessageContentPart> value)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
const
factory
ChatCompletionUserMessageContent.string(String value)
The text contents of the user message.
const
factory

Properties

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

Methods

map<TResult extends Object?>({required TResult parts(ChatCompletionMessageContentParts value), required TResult string(ChatCompletionUserMessageContentString value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? parts(ChatCompletionMessageContentParts value)?, TResult? string(ChatCompletionUserMessageContentString value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult parts(ChatCompletionMessageContentParts value)?, TResult string(ChatCompletionUserMessageContentString value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult parts(List<ChatCompletionMessageContentPart> value)?, TResult string(String value)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ChatCompletionUserMessageContent to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult parts(List<ChatCompletionMessageContentPart> value), required TResult string(String value)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? parts(List<ChatCompletionMessageContentPart> value)?, TResult? string(String value)?}) → TResult?
inherited

Operators

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