Table of Contents

Class MessageContent

Namespace
OpenAI.ObjectModels.RequestModels
Assembly
AntRunnerLib.dll

The content of a message.

public class MessageContent
Inheritance
System.Object
MessageContent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Properties

Text

If the value of Type property is "text" then Text property must contain the message content text

[JsonPropertyName("text")]
public string Text { get; set; }

Property Value

System.String

Type

The value of Type property must be one of "text", "image_url" note: Currently openAI doesn't support images in the first system message.

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

System.String

Methods

TextContent(String)

Static helper method to create MessageContent Text The text content

public static MessageContent TextContent(string text)

Parameters

text System.String

Returns

MessageContent