Add Personality Prisma Schema and Backend #130

Closed
opened 2026-01-30 21:29:00 +00:00 by jason.woltje · 0 comments
Owner

Implement Personality system backend with database schema.

Objective: Create backend for personality/assistant configuration system. UI already exists but needs backend implementation.

Tasks:

  • Add Personality model to schema.prisma
  • Define fields: id, name, display_name, system_prompt, temperature, max_tokens, llm_provider_id
  • Create migration
  • Create personality.service.ts
  • Create personality.controller.ts
  • Implement CRUD operations
  • Add personality-prompt.builder.ts for template rendering
  • Write unit and E2E tests

Acceptance Criteria:

  • UI can create/edit personalities end-to-end
  • Personalities persist to database
  • Prompt templates render correctly
  • Tests pass with 85%+ coverage
  • Existing UI works with new backend

Related: Epic #121, Phase 2 Personality Backend
Replaces/Implements: #82
Depends on: #128 (LlmProviderInstance schema)

Implement Personality system backend with database schema. Objective: Create backend for personality/assistant configuration system. UI already exists but needs backend implementation. Tasks: - Add Personality model to schema.prisma - Define fields: id, name, display_name, system_prompt, temperature, max_tokens, llm_provider_id - Create migration - Create personality.service.ts - Create personality.controller.ts - Implement CRUD operations - Add personality-prompt.builder.ts for template rendering - Write unit and E2E tests Acceptance Criteria: - UI can create/edit personalities end-to-end - Personalities persist to database - Prompt templates render correctly - Tests pass with 85%+ coverage - Existing UI works with new backend Related: Epic #121, Phase 2 Personality Backend Replaces/Implements: #82 Depends on: #128 (LlmProviderInstance schema)
jason.woltje added the databasephase-2databasep0apiapi labels 2026-01-30 21:29:00 +00:00
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-01-30 23:40:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#130