Partager via


AuthorRole Struct

Definition

A description of the intended purpose of a message within a chat completions interaction.

public readonly struct AuthorRole : IEquatable<Microsoft.SemanticKernel.ChatCompletion.AuthorRole>
type AuthorRole = struct
Public Structure AuthorRole
Implements IEquatable(Of AuthorRole)
Inheritance
AuthorRole
Implements

Constructors

AuthorRole(String)

Creates a new AuthorRole instance with the provided label.

Properties

Assistant

The role that provides responses to system-instructed, user-prompted input.

Label

Gets the label associated with this AuthorRole.

System

The role that instructs or sets the behavior of the assistant.

Tool

The role that provides additional information and references for chat completions.

User

The role that provides input for chat completions.

Methods

Equals(AuthorRole)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(AuthorRole, AuthorRole)

Returns a value indicating whether two AuthorRole instances are equivalent, as determined by a case-insensitive comparison of their labels.

Inequality(AuthorRole, AuthorRole)

Returns a value indicating whether two AuthorRole instances are not equivalent, as determined by a case-insensitive comparison of their labels.

Applies to