Vibe.Model.Switcher (vibe v0.2.2)

Copy Markdown View Source

Model and effort switching helpers.

The model selector shows profile models from agent-profiles.toml plus the current model. Users can also type any provider:model_id string directly via /model — ReqLLM supports 50+ providers out of the box.

Summary

Types

direction()

@type direction() :: :forward | :backward

Functions

cycle_effort(current_effort, model \\ nil)

@spec cycle_effort(Vibe.Model.Effort.t() | nil, String.t() | nil) ::
  Vibe.Model.Effort.t()

cycle_model(current_model, direction \\ :forward)

@spec cycle_model(String.t() | nil, direction()) ::
  {:ok, String.t()} | {:error, :one_model}

effort_options(model \\ nil)

@spec effort_options(String.t() | nil) :: [Vibe.Model.Effort.t()]

model_options(current_model \\ nil)

@spec model_options(String.t() | nil) :: [String.t()]