Class ChatBlock
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
Messages
public IList<Message> Messages { get; }
Property Value
SystemMessage
public string SystemMessage { get; set; }
Property Value
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
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()