initial commit
This commit is contained in:
15
internal/domain/session.go
Normal file
15
internal/domain/session.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package domain
|
||||
|
||||
import "context"
|
||||
|
||||
// Session represents a conversation session
|
||||
type Session struct {
|
||||
ID string `json:"id"`
|
||||
Messages []Message `json:"messages"`
|
||||
}
|
||||
|
||||
// SessionStorage defines the interface for session storage
|
||||
type SessionStorage interface {
|
||||
Get(ctx context.Context, sessionID string) (*Session, error)
|
||||
Save(ctx context.Context, session *Session) error
|
||||
}
|
||||
Reference in New Issue
Block a user