ChatRole Struct
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.
A description of the intended purpose of a message within a chat completions interaction.
public readonly struct ChatRole : IEquatable<Azure.AI.OpenAI.ChatRole>
type ChatRole = struct
Public Structure ChatRole
Implements IEquatable(Of ChatRole)
- Inheritance
-
ChatRole
- Implements
Constructors
ChatRole(String) |
Initializes a new instance of ChatRole. |
Properties
Assistant |
The role that provides responses to system-instructed, user-prompted input. |
Function |
The role that provides function results for chat completions. |
System |
The role that instructs or sets the behavior of the assistant. |
Tool |
The role that represents extension tool activity within a chat completions operation. |
User |
The role that provides input for chat completions. |
Methods
Equals(ChatRole) |
Indicates whether the current object is equal to another object of the same type. |
ToString() |
Returns the fully qualified type name of this instance. |
Operators
Equality(ChatRole, ChatRole) |
Determines if two ChatRole values are the same. |
Implicit(String to ChatRole) |
Converts a string to a ChatRole. |
Inequality(ChatRole, ChatRole) |
Determines if two ChatRole values are not the same. |
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for