This is the initial commit for the CODEX_ADK project, a full-stack AI agent management platform featuring: BACKEND (ASP.NET Core 8.0): - CQRS architecture with 6 commands and 7 queries - 16 API endpoints (all working and tested) - PostgreSQL database with 5 entities - AES-256 encryption for API keys - FluentValidation on all commands - Rate limiting and CORS configured - OpenAPI/Swagger documentation - Docker Compose setup (PostgreSQL + Ollama) FRONTEND (Flutter 3.x): - Dark theme with Svrnty branding - Collapsible sidebar navigation - CQRS API client with Result<T> error handling - Type-safe endpoints from OpenAPI schema - Multi-platform support (Web, iOS, Android, macOS, Linux, Windows) DOCUMENTATION: - Comprehensive API reference - Architecture documentation - Development guidelines for Claude Code - API integration guides - context-claude.md project overview Status: Backend ready (Grade A-), Frontend integration pending 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
namespace Codex.Dal.Entities;
|
|
|
|
/// <summary>
|
|
/// Represents a conversation grouping multiple messages together.
|
|
/// Provides conversation-level metadata and tracking.
|
|
/// </summary>
|
|
public class Conversation
|
|
{
|
|
/// <summary>
|
|
/// Unique identifier for the conversation
|
|
/// </summary>
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Title or summary of the conversation (can be auto-generated from first message)
|
|
/// </summary>
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Brief summary of the conversation topic or purpose
|
|
/// </summary>
|
|
public string? Summary { get; set; }
|
|
|
|
/// <summary>
|
|
/// When the conversation was started
|
|
/// </summary>
|
|
public DateTime StartedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
/// <summary>
|
|
/// When the last message was added to this conversation
|
|
/// </summary>
|
|
public DateTime LastMessageAt { get; set; } = DateTime.UtcNow;
|
|
|
|
/// <summary>
|
|
/// Whether this conversation is currently active
|
|
/// </summary>
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Total number of messages in this conversation
|
|
/// </summary>
|
|
public int MessageCount { get; set; } = 0;
|
|
|
|
// Navigation properties
|
|
/// <summary>
|
|
/// All messages in this conversation
|
|
/// </summary>
|
|
public ICollection<ConversationMessage> Messages { get; set; } = new List<ConversationMessage>();
|
|
|
|
/// <summary>
|
|
/// Agent executions that are part of this conversation
|
|
/// </summary>
|
|
public ICollection<AgentExecution> Executions { get; set; } = new List<AgentExecution>();
|
|
}
|