Module Ai_provider.Language_modelSource

Core abstraction for AI language models.

This is the OCaml equivalent of Vercel AI SDK's LanguageModelV3. Each provider implements this signature.

Sourcemodule type S = sig ... end

The module type that every provider must implement.

Sourcetype t = (module S)

First-class module wrapper for runtime dispatch.

Sourceval provider : t -> string
Sourceval model_id : t -> string
Sourceval specification_version : t -> string