RealtimeConversationItem Constructor

Definition

Initializes a new instance of the RealtimeConversationItem class.

public RealtimeConversationItem(System.Collections.Generic.IList<Microsoft.Extensions.AI.AIContent> contents, string? id = default, Microsoft.Extensions.AI.ChatRole? role = default);
new Microsoft.Extensions.AI.RealtimeConversationItem : System.Collections.Generic.IList<Microsoft.Extensions.AI.AIContent> * string * Nullable<Microsoft.Extensions.AI.ChatRole> -> Microsoft.Extensions.AI.RealtimeConversationItem
Public Sub New (contents As IList(Of AIContent), Optional id As String = Nothing, Optional role As Nullable(Of ChatRole) = Nothing)

Parameters

contents
IList<AIContent>

The contents of the conversation item.

id
String

The ID of the conversation item.

role
Nullable<ChatRole>

The role of the conversation item.

Applies to