Class
AIMessage

Represents a message containing AI-generated content for use in conversational UI.

Definition

Constructors

AIMessage(Author, DateTime)

Initializes a new instance of the AIMessage class.

Declaration

cs-api-definition
public AIMessage(Author author, DateTime creationDate = default)

Parameters

author

Author

The author of the message.

creationDate

DateTime

The date and time the message was created. If not specified, the default value is used.

Properties

AIAnswer

Gets or sets the answer or content generated by the AI agent.

Declaration

cs-api-definition
public string AIAnswer { get; set; }

Property Value

string

AIName

Gets or sets the name of the AI agent that generated the message.

Declaration

cs-api-definition
public string AIName { get; set; }

Property Value

string

InlineViewModel

Gets the InlineViewModel associated with this message, used for inline display in the chat UI.

Declaration

cs-api-definition
public InlineViewModel InlineViewModel { get; }

Property Value

InlineViewModel

Implements IInlineMessage.InlineViewModel