ThreadInitializationMessage(MessageRole, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET