Table of Contents

Class Conversation

Namespace
FoundationaLLM.Common.Models.Conversation
Assembly
FoundationaLLM.Common.dll

The session object.

public class Conversation : ResourceBase
Inheritance
Conversation
Inherited Members
Extension Methods

Properties

Deleted

Deleted flag used for soft delete.

public override bool Deleted { get; set; }

Property Value

bool

Id

The unique identifier.

public string Id { get; set; }

Property Value

string

Messages

The list of messages associated with the session.

[JsonIgnore]
public List<Message> Messages { get; set; }

Property Value

List<Message>

SessionId

The Partition key.

public required string SessionId { get; set; }

Property Value

string

TokensUsed

The number of tokens used in the session.

public int TokensUsed { get; set; }

Property Value

int

UPN

The UPN of the user who created the chat session.

public string UPN { get; set; }

Property Value

string

Methods

AddMessage(Message)

Adds a message to the list of messages associated with the session.

public void AddMessage(Message message)

Parameters

message Message

The message to be added.

UpdateMessage(Message)

Updates an existing message in the list of messages associated with the session.

public void UpdateMessage(Message message)

Parameters

message Message

The updated message.