Table of Contents

Class ChatBlock

Namespace
Mythosia.AI.Models
Assembly
Mythosia.AI.Abstractions.dll

Pure conversation container - holds only conversation identity and history. All settings (Temperature, MaxTokens, etc.) are managed by the service.

public class ChatBlock
Inheritance
ChatBlock
Inherited Members

Constructors

ChatBlock()

public ChatBlock()

Properties

Id

public string Id { get; }

Property Value

string

Messages

public IList<Message> Messages { get; }

Property Value

IList<Message>

SystemMessage

public string SystemMessage { get; set; }

Property Value

string

Methods

ClearMessages()

Clears all messages from the conversation

public void ClearMessages()

Clone()

Creates a deep copy of the ChatBlock (SystemMessage + Messages)

public ChatBlock Clone()

Returns

ChatBlock

RemoveLastMessage()

Removes the last message if it exists

public void RemoveLastMessage()