Condividi tramite


ChatRole(String) Constructor

Definition

Initializes a new instance of the ChatRole struct with the provided value.

public:
 ChatRole(System::String ^ value);
[System.Text.Json.Serialization.JsonConstructor]
public ChatRole (string value);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.Extensions.AI.ChatRole : string -> Microsoft.Extensions.AI.ChatRole
Public Sub New (value As String)

Parameters

value
String

The value to associate with this ChatRole.

Attributes

Applies to