Skip to main content

Module bridge

Module bridge 

Source
Expand description

Bridge layer: convert catalog port entries into oxicode_ai types.

This module sits in oxicode-sdk (not oxicode-ai) to avoid a reverse dependency: oxicode-ai must not depend on oxicode-sdk. The catalog port owns the data; the bridge owns the conversion into the types that Provider implementations consume.

See docs/designs/2026-06-17-catalog-port-design.md §7.5.

Functions§

catalog_entry_to_model
Convert a CatalogModelEntry into an oxicode_ai::Model.
provider_base_url
Resolve a provider’s base URL from the catalog port (sync read).