Documentation
Table of Contents

Class AIMessage

Namespace
IntentSharp.Providers
Assembly
IntentSharp.dll

A single chat message.

public sealed record AIMessage : IEquatable<AIMessage>
Inheritance
object
AIMessage
Implements
IEquatable<AIMessage>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

AIMessage(string, string)

A single chat message.

Properties

Content

The message text.

Role

Who wrote the message: "user" or "assistant".

Methods

Assistant(string)

Creates a message with the role "assistant".

User(string)

Creates a message with the role "user".