|
@@ -6,14 +6,13 @@ import (
|
|
|
|
|
|
type Chat interface {
|
|
type Chat interface {
|
|
Ask(ctx context.Context, text string) (string, error)
|
|
Ask(ctx context.Context, text string) (string, error)
|
|
- WithUserContext(user *UserContext) Chat
|
|
|
|
Close(ctx context.Context) error
|
|
Close(ctx context.Context) error
|
|
}
|
|
}
|
|
|
|
|
|
type AI interface {
|
|
type AI interface {
|
|
UserBrowserAgent
|
|
UserBrowserAgent
|
|
Init(ctx context.Context, debug bool) (AI, error)
|
|
Init(ctx context.Context, debug bool) (AI, error)
|
|
- NewChat(ctx context.Context) (Chat, error)
|
|
|
|
|
|
+ NewChat(ctx context.Context, user *UserContext) (Chat, error)
|
|
Close(ctx context.Context) error
|
|
Close(ctx context.Context) error
|
|
GetName() string
|
|
GetName() string
|
|
}
|
|
}
|