diff --git a/pkg/chat/service.go b/pkg/chat/service.go index 12923939..f444fe1e 100644 --- a/pkg/chat/service.go +++ b/pkg/chat/service.go @@ -40,7 +40,7 @@ type Options struct { type Service struct { *core.ServiceRuntime[Options] options Options - store *store.Store + store *store.KeyValueStore httpClient *http.Client toolExecutor ToolExecutor toolHandler *ToolCallHandler @@ -165,7 +165,7 @@ func (s *Service) OnStartup(_ context.Context) core.Result { return core.Result{Value: err, OK: false} } - keyValueStore, err := store.New(s.options.StorePath) + keyValueStore, err := store.New(store.Options{Path: s.options.StorePath}) if err != nil { return core.Result{Value: err, OK: false} }