MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / NewChatService

Function NewChatService

internal/services/chat.go:59–65  ·  view source on GitHub ↗
(db *db.DB, cfg *cfg.Cfg, logger *logger.Logger)

Source from the content-addressed store, hash-verified

57const DefaultConversationTitle = "New Conversation ."
58
59func NewChatService(db *db.DB, cfg *cfg.Cfg, logger *logger.Logger) *ChatService {
60 base := NewBaseService(db, cfg, logger)
61 return &ChatService{
62 BaseService: base,
63 conversationCollection: base.db.Collection((models.Conversation{}).CollectionName()),
64 }
65}
66
67func (s *ChatService) GetSystemPrompt(ctx context.Context, fullContent string, projectInstructions string, userInstructions string, conversationType chatv1.ConversationType) (string, error) {
68 var tmpl *template.Template

Callers 1

InitializeAppFunction · 0.92

Calls 2

NewBaseServiceFunction · 0.85
CollectionNameMethod · 0.65

Tested by

no test coverage detected