Delen via


ChatRequestUserMessage Constructors

Definition

Overloads

ChatRequestUserMessage(ChatMessageContentItem[])

Creates a new instance of ChatRequestUserMessage using a collection of structured content.

ChatRequestUserMessage(IEnumerable<ChatMessageContentItem>)

Creates a new instance of ChatRequestUserMessage using a collection of structured content.

ChatRequestUserMessage(String)

Creates a new instance of ChatRequestUserMessage using plain text content.

ChatRequestUserMessage(ChatMessageContentItem[])

Source:
ChatRequestUserMessage.cs

Creates a new instance of ChatRequestUserMessage using a collection of structured content.

public ChatRequestUserMessage (params Azure.AI.Inference.ChatMessageContentItem[] content);
new Azure.AI.Inference.ChatRequestUserMessage : Azure.AI.Inference.ChatMessageContentItem[] -> Azure.AI.Inference.ChatRequestUserMessage
Public Sub New (ParamArray content As ChatMessageContentItem())

Parameters

content
ChatMessageContentItem[]

The collection of structured content associated with the message.

Exceptions

content is null or empty.

Applies to

ChatRequestUserMessage(IEnumerable<ChatMessageContentItem>)

Source:
ChatRequestUserMessage.cs

Creates a new instance of ChatRequestUserMessage using a collection of structured content.

public ChatRequestUserMessage (System.Collections.Generic.IEnumerable<Azure.AI.Inference.ChatMessageContentItem> content);
new Azure.AI.Inference.ChatRequestUserMessage : seq<Azure.AI.Inference.ChatMessageContentItem> -> Azure.AI.Inference.ChatRequestUserMessage
Public Sub New (content As IEnumerable(Of ChatMessageContentItem))

Parameters

content
IEnumerable<ChatMessageContentItem>

The collection of structured content associated with the message.

Exceptions

content is null or empty.

Applies to

ChatRequestUserMessage(String)

Source:
ChatRequestUserMessage.cs

Creates a new instance of ChatRequestUserMessage using plain text content.

public ChatRequestUserMessage (string content);
new Azure.AI.Inference.ChatRequestUserMessage : string -> Azure.AI.Inference.ChatRequestUserMessage
Public Sub New (content As String)

Parameters

content
String

The plain text content associated with the message.

Exceptions

content is null or empty.

Applies to