Module Ai_provider.ProviderSource

Factory for creating model instances from a provider.

This is the OCaml equivalent of Vercel AI SDK's ProviderV3.

Sourcemodule type S = sig ... end
Sourcetype t = (module S)

First-class module wrapper for runtime dispatch.

Sourceval language_model : t -> string -> Language_model.t
Sourceval name : t -> string