Share via


ThreadInitializationMessage(MessageRole, String) Constructor

Definition

Initializes a new instance of ThreadInitializationMessage.

public ThreadInitializationMessage (Azure.AI.OpenAI.Assistants.MessageRole role, string content);
new Azure.AI.OpenAI.Assistants.ThreadInitializationMessage : Azure.AI.OpenAI.Assistants.MessageRole * string -> Azure.AI.OpenAI.Assistants.ThreadInitializationMessage
Public Sub New (role As MessageRole, content As String)

Parameters

role
MessageRole

The role associated with the assistant thread message. Currently, only 'user' is supported when providing initial messages to a new thread.

content
String

The textual content of the initial message. Currently, robust input including images and annotated text may only be provided via a separate call to the create message API.

Exceptions

content is null.

Applies to