Initiate agents from pool

This commit is contained in:
mudler
2024-04-07 20:13:28 +02:00
parent 23867bf0e6
commit 59b91d1403
3 changed files with 93 additions and 10 deletions

View File

@@ -94,6 +94,20 @@ func WithLLMAPIURL(url string) Option {
}
}
func WithStateFile(path string) Option {
return func(o *options) error {
o.statefile = path
return nil
}
}
func WithCharacterFile(path string) Option {
return func(o *options) error {
o.characterfile = path
return nil
}
}
func WithLLMAPIKey(key string) Option {
return func(o *options) error {
o.LLMAPI.APIKey = key