CommBus.Semantic (CommBus v0.1.0)

Copy Markdown View Source

Helper for retrieving the configured semantic adapter.

Summary

Functions

Returns the configured semantic similarity adapter module, checking options first, then application config, and falling back to CommBus.Semantic.SimpleAdapter.

Functions

adapter(opts \\ [])

@spec adapter(keyword()) :: module()

Returns the configured semantic similarity adapter module, checking options first, then application config, and falling back to CommBus.Semantic.SimpleAdapter.

Parameters

  • opts — Keyword options; :semantic_adapter overrides the configured adapter.

Returns

The adapter module (an atom implementing CommBus.Semantic.Adapter).