Jidoka.Config (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Runtime configuration helpers for Jidoka.

Summary

Functions

Returns the configured default generation parameters.

Returns the globally configured default maximum model turns.

Returns the configured default model as normalized LLMDB data.

Returns the globally configured default turn timeout in milliseconds.

Returns a compact provider/model identifier for prompts, traces, and tests.

Validates and normalizes generation defaults.

Validates and normalizes generation defaults, raising on error.

Validates and normalizes any ReqLLM-supported model input.

Validates and normalizes a model input, raising on error.

Validates and normalizes a positive integer config value.

Validates and normalizes a positive integer config value, raising on error.

Types

model()

@type model() :: LLMDB.Model.t()

model_spec()

@type model_spec() :: ReqLLM.model_input()

Functions

default_generation()

@spec default_generation() :: Jidoka.Agent.Spec.Generation.t()

Returns the configured default generation parameters.

default_max_model_turns()

@spec default_max_model_turns() :: pos_integer()

Returns the globally configured default maximum model turns.

default_model()

@spec default_model() :: model()

Returns the configured default model as normalized LLMDB data.

default_turn_timeout_ms()

@spec default_turn_timeout_ms() :: pos_integer()

Returns the globally configured default turn timeout in milliseconds.

model_ref(model)

@spec model_ref(model()) :: String.t()

Returns a compact provider/model identifier for prompts, traces, and tests.

normalize_generation(value, field \\ :generation)

@spec normalize_generation(term(), atom()) ::
  {:ok, Jidoka.Agent.Spec.Generation.t()} | {:error, term()}

Validates and normalizes generation defaults.

normalize_generation!(value, field \\ :generation)

@spec normalize_generation!(term(), atom()) :: Jidoka.Agent.Spec.Generation.t()

Validates and normalizes generation defaults, raising on error.

normalize_model_spec(value, field \\ :model)

@spec normalize_model_spec(term(), atom()) :: {:ok, model()} | {:error, term()}

Validates and normalizes any ReqLLM-supported model input.

normalize_model_spec!(value, field \\ :model)

@spec normalize_model_spec!(term(), atom()) :: model()

Validates and normalizes a model input, raising on error.

normalize_positive_integer(value, field)

@spec normalize_positive_integer(term(), atom()) ::
  {:ok, pos_integer()} | {:error, term()}

Validates and normalizes a positive integer config value.

normalize_positive_integer!(value, field)

@spec normalize_positive_integer!(term(), atom()) :: pos_integer()

Validates and normalizes a positive integer config value, raising on error.