Skip to main content

Module factory_registry

Module factory_registry 

Source
Expand description

Factory registry for runtime components.

Maps kind strings (e.g. "provider.openai", "store.session.memory") to factory invokers that deserialize a JSON config and produce a Box<dyn AnyComponent>.

Structs§

FactoryRegistry
A registry that maps kind strings (e.g. "provider.openai") to FactoryInvoker instances.

Enums§

FactoryError
Errors from factory creation or registry operations.

Traits§

FactoryInvoker
A factory invocable — given a JSON config and a ComponentContext, produces a Box<dyn AnyComponent>.

Type Aliases§

FactoryFn
Thread-safe factory function pointer — an Arc around a boxed closure.