journal/Journal.Core/Dtos/ConversationDtos.cs
Jacob Schmidt 192e6e3891 feat: add AI coaching, conversation persistence, and LLamaSharp integration
- Add Journal.AI project with LLamaSharp-based AI service (Phi-3 model)
- Implement coach sessions (daily check-in, evening review, weekly review)
- Add conversation CRUD with SQLCipher persistence
- AI chat with full conversation history for context-aware replies
- Frontend: CoachPanel, AI stores, conversation stores, side panel UI
- Conversation list with create, rename, and delete support
- Fix Phi-3 output quality (system prompt leaking, token cleanup, JSON filtering)
- Fix CREATEDRAFT kind override in coach sessions

Co-Authored-By: Oz <oz-agent@warp.dev>
2026-03-01 16:07:59 -06:00

29 lines
659 B
C#

using System.ComponentModel.DataAnnotations;
namespace Journal.Core.Dtos;
public sealed record ConversationDto(
Guid Id,
string Title,
DateTimeOffset CreatedAt,
DateTimeOffset UpdatedAt);
public sealed record ConversationDetailDto(
Guid Id,
string Title,
IReadOnlyList<ConversationMessageDto> Messages,
DateTimeOffset CreatedAt,
DateTimeOffset UpdatedAt);
public sealed record ConversationMessageDto(
Guid Id,
string Role,
string Text,
DateTimeOffset CreatedAt);
public sealed record CreateConversationDto(
[Required] string Title);
public sealed record UpdateConversationDto(
string? Title);