AIClientModelFactory.ThreadMessage 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 ThreadMessage.
public static Azure.AI.Projects.ThreadMessage ThreadMessage (string id = default, DateTimeOffset createdAt = default, string threadId = default, Azure.AI.Projects.MessageStatus status = default, Azure.AI.Projects.MessageIncompleteDetails incompleteDetails = default, DateTimeOffset? completedAt = default, DateTimeOffset? incompleteAt = default, Azure.AI.Projects.MessageRole role = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.MessageContent> contentItems = default, string agentId = default, string runId = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.MessageAttachment> attachments = default, System.Collections.Generic.IDictionary<string,string> metadata = default);
static member ThreadMessage : string * DateTimeOffset * string * Azure.AI.Projects.MessageStatus * Azure.AI.Projects.MessageIncompleteDetails * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.AI.Projects.MessageRole * seq<Azure.AI.Projects.MessageContent> * string * string * seq<Azure.AI.Projects.MessageAttachment> * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.Projects.ThreadMessage
Public Shared Function ThreadMessage (Optional id As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional threadId As String = Nothing, Optional status As MessageStatus = Nothing, Optional incompleteDetails As MessageIncompleteDetails = Nothing, Optional completedAt As Nullable(Of DateTimeOffset) = Nothing, Optional incompleteAt As Nullable(Of DateTimeOffset) = Nothing, Optional role As MessageRole = Nothing, Optional contentItems As IEnumerable(Of MessageContent) = Nothing, Optional agentId As String = Nothing, Optional runId As String = Nothing, Optional attachments As IEnumerable(Of MessageAttachment) = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing) As ThreadMessage
Parameters
- id
- String
The identifier, which can be referenced in API endpoints.
- createdAt
- DateTimeOffset
The Unix timestamp, in seconds, representing when this object was created.
- threadId
- String
The ID of the thread that this message belongs to.
- status
- MessageStatus
The status of the message.
- incompleteDetails
- MessageIncompleteDetails
On an incomplete message, details about why the message is incomplete.
- completedAt
- Nullable<DateTimeOffset>
The Unix timestamp (in seconds) for when the message was completed.
- incompleteAt
- Nullable<DateTimeOffset>
The Unix timestamp (in seconds) for when the message was marked as incomplete.
- role
- MessageRole
The role associated with the agent thread message.
- contentItems
- IEnumerable<MessageContent>
The list of content items associated with the agent thread message.
- agentId
- String
If applicable, the ID of the agent that authored this message.
- runId
- String
If applicable, the ID of the run associated with the authoring of this message.
- attachments
- IEnumerable<MessageAttachment>
A list of files attached to the message, and the tools they were 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.
Returns
A new ThreadMessage instance for mocking.
Applies to
Azure SDK for .NET