Agentic.Strategy.Registry
(agentic v0.2.2)
Copy Markdown
Process registry for strategy modules.
Strategies are registered by their id/0 callback. The Default
strategy is always pre-registered.
Summary
Functions
Return all registered strategies as a map of id -> module.
Returns a specification to start this module under a supervisor.
Fetch a strategy module by id, or nil if not registered.
Fetch a strategy module by id, raising if not found.
Register a strategy module.
Functions
Return all registered strategies as a map of id -> module.
Returns a specification to start this module under a supervisor.
See Supervisor.
Fetch a strategy module by id, or nil if not registered.
Fetch a strategy module by id, raising if not found.
@spec register(module()) :: :ok
Register a strategy module.