open-learning-exchange/planet

View on GitHub
chatapi/src/models/chat-message.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
export interface ChatMessage {
  role: 'user' | 'assistant';
  content: string;
}

export interface GeminiMessage {
  role: 'user' | 'model';
  parts: any[];
}