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
Id
The unique identifier.
public string Id { get; set; }
Property Value
Messages
The list of messages associated with the session.
[JsonIgnore]
public List<Message> Messages { get; set; }
Property Value
SessionId
The Partition key.
public required string SessionId { get; set; }
Property Value
TokensUsed
The number of tokens used in the session.
public int TokensUsed { get; set; }
Property Value
UPN
The UPN of the user who created the chat session.
public string UPN { get; set; }
Property Value
Methods
AddMessage(Message)
Adds a message to the list of messages associated with the session.
public void AddMessage(Message message)
Parameters
message
MessageThe 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
MessageThe updated message.