Automatically save all conversations
This commit is contained in:
@@ -40,6 +40,8 @@ type options struct {
|
||||
// callbacks
|
||||
reasoningCallback func(ActionCurrentState) bool
|
||||
resultCallback func(ActionState)
|
||||
|
||||
conversationsPath string
|
||||
}
|
||||
|
||||
func defaultOptions() *options {
|
||||
@@ -97,6 +99,13 @@ func WithTimeout(timeout string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithConversationsPath(path string) Option {
|
||||
return func(o *options) error {
|
||||
o.conversationsPath = path
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func EnableKnowledgeBaseWithResults(results int) Option {
|
||||
return func(o *options) error {
|
||||
o.enableKB = true
|
||||
|
||||
Reference in New Issue
Block a user