Documentation
¶
Index ¶
- type PersistentConversationAdapter
- func (a *PersistentConversationAdapter) DeleteSavedConversation(ctx context.Context, conversationID string) error
- func (a *PersistentConversationAdapter) GetCurrentConversationID() string
- func (a *PersistentConversationAdapter) GetCurrentConversationMetadata() shortcuts.ConversationMetadata
- func (a *PersistentConversationAdapter) ListSavedConversations(ctx context.Context, limit, offset int) ([]shortcuts.ConversationSummary, error)
- func (a *PersistentConversationAdapter) LoadConversation(ctx context.Context, conversationID string) error
- func (a *PersistentConversationAdapter) SaveConversation(ctx context.Context) error
- func (a *PersistentConversationAdapter) SetConversationTitle(title string)
- func (a *PersistentConversationAdapter) StartNewConversation(title string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistentConversationAdapter ¶
type PersistentConversationAdapter struct {
// contains filtered or unexported fields
}
PersistentConversationAdapter adapts services.PersistentConversationRepository to shortcuts.PersistentConversationRepository
func NewPersistentConversationAdapter ¶
func NewPersistentConversationAdapter(repo *services.PersistentConversationRepository) *PersistentConversationAdapter
NewPersistentConversationAdapter creates a new adapter
func (*PersistentConversationAdapter) DeleteSavedConversation ¶
func (a *PersistentConversationAdapter) DeleteSavedConversation(ctx context.Context, conversationID string) error
DeleteSavedConversation delegates to the underlying repository
func (*PersistentConversationAdapter) GetCurrentConversationID ¶
func (a *PersistentConversationAdapter) GetCurrentConversationID() string
GetCurrentConversationID delegates to the underlying repository
func (*PersistentConversationAdapter) GetCurrentConversationMetadata ¶
func (a *PersistentConversationAdapter) GetCurrentConversationMetadata() shortcuts.ConversationMetadata
GetCurrentConversationMetadata adapts the method to return shortcuts.ConversationMetadata
func (*PersistentConversationAdapter) ListSavedConversations ¶
func (a *PersistentConversationAdapter) ListSavedConversations(ctx context.Context, limit, offset int) ([]shortcuts.ConversationSummary, error)
ListSavedConversations adapts the method to return shortcuts.ConversationSummary
func (*PersistentConversationAdapter) LoadConversation ¶
func (a *PersistentConversationAdapter) LoadConversation(ctx context.Context, conversationID string) error
LoadConversation delegates to the underlying repository
func (*PersistentConversationAdapter) SaveConversation ¶
func (a *PersistentConversationAdapter) SaveConversation(ctx context.Context) error
SaveConversation delegates to the underlying repository
func (*PersistentConversationAdapter) SetConversationTitle ¶
func (a *PersistentConversationAdapter) SetConversationTitle(title string)
SetConversationTitle delegates to the underlying repository
func (*PersistentConversationAdapter) StartNewConversation ¶
func (a *PersistentConversationAdapter) StartNewConversation(title string) error
StartNewConversation delegates to the underlying repository