namespace AIStudio.Chat;
///
/// A block of content in a chat thread. Might be any type of content, e.g., text, image, voice, etc.
///
public class ContentBlock
{
///
/// Time when the content block was created.
///
public DateTimeOffset Time { get; init; }
///
/// Type of the content block, e.g., text, image, voice, etc.
///
public ContentType ContentType { get; init; } = ContentType.NONE;
///
/// The content of the block.
///
public IContent? Content { get; init; }
///
/// The role of the content block in the chat thread, e.g., user, AI, etc.
///
public ChatRole Role { get; init; } = ChatRole.NONE;
///
/// Should the content block be hidden from the user?
///
public bool HideFromUser { get; set; }
}