Table of Contents

Class TextOrChatContentPart

Namespace
Glitch9.AIDevKit

An array of content parts with a defined type, each can be of type Text or Image_Url when passing in images. You can pass multiple images by adding multiple Image_Url content parts. Image input is only supported when using the gpt-4-visual-preview model.

public class TextOrChatContentPart
Inheritance
object
TextOrChatContentPart

Constructors

TextOrChatContentPart()

public TextOrChatContentPart()

TextOrChatContentPart(ChatContentPart)

public TextOrChatContentPart(ChatContentPart part)

Parameters

part ChatContentPart

TextOrChatContentPart(string)

public TextOrChatContentPart(string text)

Parameters

text string

Properties

HasValue

public bool HasValue { get; }

Property Value

bool

IsBase64

public bool IsBase64 { get; }

Property Value

bool

IsNull

public bool IsNull { get; }

Property Value

bool

IsString

public bool IsString { get; }

Property Value

bool

Type

public ChatContentPartType Type { get; }

Property Value

ChatContentPartType

Methods

ToPart()

public ChatContentPart ToPart()

Returns

ChatContentPart

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator string(TextOrChatContentPart)

public static implicit operator string(TextOrChatContentPart content)

Parameters

content TextOrChatContentPart

Returns

string

implicit operator TextOrChatContentPart(string)

public static implicit operator TextOrChatContentPart(string text)

Parameters

text string

Returns

TextOrChatContentPart