Allow to display HUD/character informations to the LLM

This commit is contained in:
mudler
2024-04-01 18:27:09 +02:00
parent fdb0585dcb
commit 2ebbf1007f
4 changed files with 80 additions and 31 deletions

View File

@@ -18,6 +18,7 @@ type options struct {
randomIdentityGuidance string
randomIdentity bool
actions Actions
enableHUD bool
context context.Context
}
@@ -51,6 +52,11 @@ func newOptions(opts ...Option) (*options, error) {
return options, nil
}
var EnableHUD = func(o *options) error {
o.enableHUD = true
return nil
}
func WithLLMAPIURL(url string) Option {
return func(o *options) error {
o.LLMAPI.APIURL = url