Język

ChatMessage Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ChatMessage.

Przeciążenia

Nazwa Opis
ChatMessage()

Inicjuje nowe wystąpienie klasy ChatMessage.

ChatMessage(ChatRole, IList<AIContent>)

Inicjuje nowe wystąpienie klasy ChatMessage.

ChatMessage(ChatRole, String)

Inicjuje nowe wystąpienie klasy ChatMessage.

ChatMessage()

Źródło:
ChatMessage.cs

Inicjuje nowe wystąpienie klasy ChatMessage.

public:
 ChatMessage();
[System.Text.Json.Serialization.JsonConstructor]
public ChatMessage();
Public Sub New ()
Atrybuty

Uwagi

Wystąpienie domyślnie ma rolę User.

Dotyczy

ChatMessage(ChatRole, IList<AIContent>)

Źródło:
ChatMessage.cs

Inicjuje nowe wystąpienie klasy ChatMessage.

public:
 ChatMessage(Microsoft::Extensions::AI::ChatRole role, System::Collections::Generic::IList<Microsoft::Extensions::AI::AIContent ^> ^ contents);
public ChatMessage(Microsoft.Extensions.AI.ChatRole role, System.Collections.Generic.IList<Microsoft.Extensions.AI.AIContent>? contents);
new Microsoft.Extensions.AI.ChatMessage : Microsoft.Extensions.AI.ChatRole * System.Collections.Generic.IList<Microsoft.Extensions.AI.AIContent> -> Microsoft.Extensions.AI.ChatMessage
Public Sub New (role As ChatRole, contents As IList(Of AIContent))

Parametry

role
ChatRole

Rola autora wiadomości.

contents
IList<AIContent>

Zawartość tej wiadomości.

Dotyczy

ChatMessage(ChatRole, String)

Źródło:
ChatMessage.cs

Inicjuje nowe wystąpienie klasy ChatMessage.

public:
 ChatMessage(Microsoft::Extensions::AI::ChatRole role, System::String ^ content);
public ChatMessage(Microsoft.Extensions.AI.ChatRole role, string? content);
new Microsoft.Extensions.AI.ChatMessage : Microsoft.Extensions.AI.ChatRole * string -> Microsoft.Extensions.AI.ChatMessage
Public Sub New (role As ChatRole, content As String)

Parametry

role
ChatRole

Rola autora wiadomości.

content
String

Zawartość tekstowa wiadomości.

Dotyczy