AIProjectsModelFactory.ThreadMessageOptions 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 ThreadMessageOptions.
public static Azure.AI.Projects.ThreadMessageOptions ThreadMessageOptions (Azure.AI.Projects.MessageRole role = default, string content = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.MessageAttachment> attachments = default, System.Collections.Generic.IDictionary<string,string> metadata = default);
static member ThreadMessageOptions : Azure.AI.Projects.MessageRole * string * seq<Azure.AI.Projects.MessageAttachment> * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.Projects.ThreadMessageOptions
Public Shared Function ThreadMessageOptions (Optional role As MessageRole = Nothing, Optional content As String = Nothing, Optional attachments As IEnumerable(Of MessageAttachment) = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing) As ThreadMessageOptions
Parameters
- role
- MessageRole
The role of the entity that is creating the message. Allowed values include:
user
: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant
: Indicates the message is generated by the agent. Use this value to insert messages from the agent into the conversation.
- 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.
- attachments
- IEnumerable<MessageAttachment>
A list of files attached to the message, and the tools they should be added to.
- 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 ThreadMessageOptions instance for mocking.
Applies to
Azure SDK for .NET