LLM.Provider behaviour (LLM v0.1.0)

Copy Markdown View Source

Provider configuration behaviour.

A provider is either:

  • A map with :dialect, :base_url, and optionally :api_key
  • A module implementing the LLM.Provider behaviour

Summary

Types

config()

@type config() :: %{
  dialect: module(),
  base_url: String.t(),
  api_key: String.t() | nil,
  http_opts: keyword()
}

Callbacks

default_config()

@callback default_config() :: config()

name()

@callback name() :: atom()