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.


mutable-registry

clj

platforms: clj

(mutable-registry registry*)

Wraps an atom-backed registry for mutable use cases.

cljs

platforms: cljs

(mutable-registry registry*)

Wraps an atom-backed registry for mutable use cases.


dynamic-registry

clj

platforms: clj

(dynamic-registry)

Creates a dynamic registry wrapper that resolves from thread-local bindings.

cljs

platforms: cljs

(dynamic-registry)

Creates a dynamic registry wrapper that resolves from thread-local bindings.


default-registry

clj

platforms: clj

(default-registry)

Returns the process default registry.

cljs

platforms: cljs

(default-registry)

Returns the process default registry.


set-default-registry!

clj

platforms: clj

(set-default-registry! registry-value)

Sets the process default registry after resolving wrapper implementations.

cljs

platforms: cljs

(set-default-registry! registry-value)

Sets the process default registry after resolving wrapper implementations.


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.


clear-adapters

clj

platforms: clj

(clear-adapters registry-value)

Removes all adapters from registry-value.

cljs

platforms: cljs

(clear-adapters registry-value)

Removes all adapters from registry-value.


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.