Fix chat store API compatibility

This commit is contained in:
Snider 2026-04-15 17:35:06 +01:00
parent 7255431e76
commit babc2e3eda

View file

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