Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager owns a Store and runs a background loop that fires due heartbeats. Create one with New, register an OnFire callback, then call Run in a goroutine.
func (*Manager) ListPrompts ¶
ListPrompts returns nil and satisfies the llm.Connector interface.
func (*Manager) ListResources ¶
ListResources returns nil and satisfies the llm.Connector interface.
type Opt ¶
Opt is a functional option for configuring a Manager.
func WithLogger ¶
WithLogger sets the logger used for error reporting inside the run loop.
func WithOnFire ¶
WithOnFire registers a callback invoked for each heartbeat as it matures. Only one callback can be active; later calls overwrite earlier ones.
func WithPollInterval ¶
WithPollInterval sets how often the Manager polls for due heartbeats. The default is 10 s.