ChatRole(String) Constructor
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 the ChatRole struct with the provided value.
public:
ChatRole(System::String ^ value);
C#
[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)
- Attributes
Termék | Verziók |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: