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
@type model() :: LLMDB.Model.t()
@type model_spec() :: ReqLLM.model_input()
Functions
@spec default_generation() :: Jidoka.Agent.Spec.Generation.t()
Returns the configured default generation parameters.
@spec default_max_model_turns() :: pos_integer()
Returns the globally configured default maximum model turns.
@spec default_model() :: model()
Returns the configured default model as normalized LLMDB data.
@spec default_turn_timeout_ms() :: pos_integer()
Returns the globally configured default turn timeout in milliseconds.
Returns a compact provider/model identifier for prompts, traces, and tests.
@spec normalize_generation(term(), atom()) :: {:ok, Jidoka.Agent.Spec.Generation.t()} | {:error, term()}
Validates and normalizes generation defaults.
@spec normalize_generation!(term(), atom()) :: Jidoka.Agent.Spec.Generation.t()
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.
@spec normalize_positive_integer(term(), atom()) :: {:ok, pos_integer()} | {:error, term()}
Validates and normalizes a positive integer config value.
@spec normalize_positive_integer!(term(), atom()) :: pos_integer()
Validates and normalizes a positive integer config value, raising on error.