Automatically save all conversations

This commit is contained in:
Ettore Di Giacinto
2025-03-04 22:22:16 +01:00
parent 758a73e8ab
commit d288755444
6 changed files with 79 additions and 8 deletions

View File

@@ -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