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

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

RemoveFunctionMessages()

Removes all Function-related messages from the conversation

[Obsolete("This method is deprecated and will be removed in future versions.")]
public void RemoveFunctionMessages()

RemoveLastMessage()

Removes the last message if it exists

public void RemoveLastMessage()