ol.llx.ai.registry
platforms: clj, cljs
immutable-registry
clj
platforms: clj
(immutable-registry)
(immutable-registry registry-map)
Creates an immutable registry map.
With no argument it creates an empty normalized registry.
cljs
platforms: cljs
(immutable-registry)
(immutable-registry registry-map)
Creates an immutable registry map.
With no argument it creates an empty normalized registry.
resolve-registry
clj
platforms: clj
(resolve-registry)
(resolve-registry registry-value)
Resolves supported registry wrapper implementations to a registry map.
cljs
platforms: cljs
(resolve-registry)
(resolve-registry registry-value)
Resolves supported registry wrapper implementations to a registry map.
register-adapter
clj
platforms: clj
(register-adapter registry-value adapter)
(register-adapter registry-value adapter source-id)
Registers adapter in registry-value, with optional source-id metadata.
cljs
platforms: cljs
(register-adapter registry-value adapter)
(register-adapter registry-value adapter source-id)
Registers adapter in registry-value, with optional source-id metadata.
unregister-adapters-by-source
clj
platforms: clj
(unregister-adapters-by-source registry-value source-id)
Removes adapters from registry-value whose registration source-id matches.
cljs
platforms: cljs
(unregister-adapters-by-source registry-value source-id)
Removes adapters from registry-value whose registration source-id matches.
get-adapter
clj
platforms: clj
(get-adapter api)
(get-adapter registry-value api)
Returns the adapter for an API key.
With one argument, uses the default registry.
cljs
platforms: cljs
(get-adapter api)
(get-adapter registry-value api)
Returns the adapter for an API key.
With one argument, uses the default registry.
get-adapters
clj
platforms: clj
(get-adapters)
(get-adapters registry-value)
Returns all adapters in the registry.
With no argument, uses the default registry.
cljs
platforms: cljs
(get-adapters)
(get-adapters registry-value)
Returns all adapters in the registry.
With no argument, uses the default registry.