ChatCompletionDeveloperMessageContent class sealed

The contents of the developer message.

Implementers
Annotations
  • @freezed

Constructors

ChatCompletionDeveloperMessageContent.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory
ChatCompletionDeveloperMessageContent.parts(List<ChatCompletionMessageContentPart> value)
An array of content parts with a defined type. For developer messages, only type text is supported.
const
factory
ChatCompletionDeveloperMessageContent.text(String value)
The text contents of the developer 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(ChatCompletionDeveloperMessageContentParts value), required TResult text(ChatCompletionDeveloperMessageContentString value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? parts(ChatCompletionDeveloperMessageContentParts value)?, TResult? text(ChatCompletionDeveloperMessageContentString value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult parts(ChatCompletionDeveloperMessageContentParts value)?, TResult text(ChatCompletionDeveloperMessageContentString value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult parts(List<ChatCompletionMessageContentPart> value)?, TResult text(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 ChatCompletionDeveloperMessageContent 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 text(String value)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? parts(List<ChatCompletionMessageContentPart> value)?, TResult? text(String value)?}) → TResult?
inherited

Operators

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