using BotSharp.Abstraction.Conversations.Models; namespace BotSharp.OpenAPI.ViewModels.Conversations; public class ConversationViewModel { public string Id { get; set; } public string AgentId { get; set; } public string Title { get; set; } = string.Empty; public DateTime UpdatedTime { get; set; } = DateTime.UtcNow; public DateTime CreatedTime { get; set; } = DateTime.UtcNow; public static ConversationViewModel FromSession(Conversation sess) { return new ConversationViewModel { Id = sess.Id, AgentId = sess.AgentId, Title = sess.Title, CreatedTime = sess.CreatedTime, UpdatedTime = sess.UpdatedTime }; } }