AI.Model (fnord v0.9.30)

View Source

Summary

Functions

Return a provider-agnostic "balanced" profile. Delegates to the configured provider implementation.

Shortcut for coding; currently equals balanced().

Return a provider-agnostic "fast" profile. Delegates to the configured provider implementation.

Provider-agnostic large_context; default tier :smart. Delegates to provider implementation.

Return a provider-agnostic "smart" profile. Delegates to the configured provider implementation.

Return a provider-agnostic "smarter" profile. Delegates to the configured provider implementation.

Provider-agnostic web_search profile. Delegates to provider implementation.

Types

reasoning_level()

@type reasoning_level() :: :none | :minimal | :low | :medium | :high | :default

speed()

@type speed() :: :smart | :balanced | :fast

t()

@type t() :: %AI.Model{
  context: non_neg_integer(),
  model: String.t(),
  reasoning: reasoning_level(),
  verbosity: verbosity_level() | nil
}

verbosity_level()

@type verbosity_level() :: :low | :medium | :high

Functions

balanced()

@spec balanced() :: t()

Return a provider-agnostic "balanced" profile. Delegates to the configured provider implementation.

coding()

@spec coding() :: t()

Shortcut for coding; currently equals balanced().

fast()

@spec fast() :: t()

Return a provider-agnostic "fast" profile. Delegates to the configured provider implementation.

large_context()

@spec large_context() :: t()

Provider-agnostic large_context; default tier :smart. Delegates to provider implementation.

large_context(tier)

@spec large_context(:smart | :balanced | :fast) :: t()

new(model, context, reasoning \\ :medium)

@spec new(String.t(), non_neg_integer(), reasoning_level()) :: t()

smart()

@spec smart() :: t()

Return a provider-agnostic "smart" profile. Delegates to the configured provider implementation.

smarter()

@spec smarter() :: t()

Return a provider-agnostic "smarter" profile. Delegates to the configured provider implementation.

web_search()

@spec web_search() :: t()

Provider-agnostic web_search profile. Delegates to provider implementation.

with_reasoning(model, lvl)

@spec with_reasoning(t(), reasoning_level()) :: t()

with_verbosity(model, lvl)

@spec with_verbosity(t(), verbosity_level() | binary() | nil) :: t()