Fixups
This commit is contained in:
@@ -29,6 +29,7 @@ type options struct {
|
||||
statefile string
|
||||
context context.Context
|
||||
permanentGoal string
|
||||
timeout string
|
||||
periodicRuns time.Duration
|
||||
kbResults int
|
||||
ragdb RAGDB
|
||||
@@ -98,6 +99,13 @@ func LogLevel(level slog.Level) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithTimeout(timeout string) Option {
|
||||
return func(o *options) error {
|
||||
o.timeout = timeout
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func EnableKnowledgeBaseWithResults(results int) Option {
|
||||
return func(o *options) error {
|
||||
o.enableKB = true
|
||||
|
||||
Reference in New Issue
Block a user