Documentation
¶
Index ¶
- Constants
- func DefaultPluginConfig() map[string]any
- func NewManagedRuntime(deps RuntimeDeps) pkgplugins.Runtime
- func PluginConfigSchema() map[string]any
- func RedactPluginConfig(raw map[string]any) map[string]any
- func SetRuntimeFactoryForTesting(factory func(platform pkgplugins.Platform) (pkgplugins.Runtime, error)) func()
- type Config
- type PluginConfig
- type RuntimeDeps
- type Service
Constants ¶
View Source
const ( PluginID = "reflect" RuntimeName = "service" )
Variables ¶
This section is empty.
Functions ¶
func DefaultPluginConfig ¶
func NewManagedRuntime ¶
func NewManagedRuntime(deps RuntimeDeps) pkgplugins.Runtime
func PluginConfigSchema ¶
func SetRuntimeFactoryForTesting ¶
func SetRuntimeFactoryForTesting(factory func(platform pkgplugins.Platform) (pkgplugins.Runtime, error)) func()
Types ¶
type Config ¶
type Config struct {
StateStore pkgplugins.StateStore
Memory memory.Provider
Store pkgplugins.ReflectStore
SkillStore pkgplugins.SkillStore
Notifier pkgplugins.Notifier
Workspace string
Interval time.Duration
Batch int
Log *slog.Logger
Providers func(api, apiKey, baseURL string) (*providers.Registry, error)
}
Config holds dependencies for the reflect service.
type PluginConfig ¶
func DecodePluginConfig ¶
func DecodePluginConfig(raw map[string]any) (PluginConfig, error)
type RuntimeDeps ¶
type RuntimeDeps struct {
Services pkgplugins.ReflectPlatform
Notifications pkgplugins.Notifier
StateStore pkgplugins.StateStore
SkillStore pkgplugins.SkillStore
Scheduler pkgplugins.Scheduler
Log *slog.Logger
NewService func(Config) serviceRunner
Now func() time.Time
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service runs background conversation review.
func (*Service) ReviewNow ¶
ReviewNow triggers an immediate review cycle for an agent. Returns the number of sessions reviewed.
Click to show internal directories.
Click to hide internal directories.