AssistantsModelFactory.ThreadInitializationMessage Method
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 static Azure.AI.OpenAI.Assistants.ThreadInitializationMessage ThreadInitializationMessage(Azure.AI.OpenAI.Assistants.MessageRole role = default, string content = default, System.Collections.Generic.IEnumerable<string> fileIds = default, System.Collections.Generic.IDictionary<string,string> metadata = default);
static member ThreadInitializationMessage : Azure.AI.OpenAI.Assistants.MessageRole * string * seq<string> * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.OpenAI.Assistants.ThreadInitializationMessage
Public Shared Function ThreadInitializationMessage (Optional role As MessageRole = Nothing, Optional content As String = Nothing, Optional fileIds As IEnumerable(Of String) = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing) As ThreadInitializationMessage
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.
- fileIds
- IEnumerable<String>
A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files.
- metadata
- IDictionary<String,String>
A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.
Returns
A new ThreadInitializationMessage instance for mocking.
Applies to
Azure SDK for .NET