你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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