Agentic.Config (agentic v0.2.2)

Copy Markdown

Runtime config surface for agentic, loaded from Application.get_all_env(:agentic).

Hosts configure agentic through the standard Elixir config flow:

config :agentic,
  providers: [Agentic.LLM.Provider.Anthropic, ...],
  catalog: [persist_path: "~/.agentic/catalog.json", ...]

This module exposes typed accessors validated via nimble_options.

Summary

Functions

Catalog config key.

Returns the preferred embedding model id, or nil if not configured. Hosts can set config :agentic, embedding_model: "text-embedding-3-small".

All providers configured at compile time.

Router config key.

Telemetry config key.

Usage config key.

Validate and return the full config map.

Functions

catalog(key, default \\ nil)

@spec catalog(key :: atom(), default :: term()) :: term()

Catalog config key.

embedding_model()

@spec embedding_model() :: String.t() | nil

Returns the preferred embedding model id, or nil if not configured. Hosts can set config :agentic, embedding_model: "text-embedding-3-small".

providers()

@spec providers() :: [module()]

All providers configured at compile time.

router(key, default \\ nil)

@spec router(key :: atom(), default :: term()) :: term()

Router config key.

telemetry(key, default \\ nil)

@spec telemetry(key :: atom(), default :: term()) :: term()

Telemetry config key.

usage(key, default \\ nil)

@spec usage(key :: atom(), default :: term()) :: term()

Usage config key.

validate!()

@spec validate!() :: keyword()

Validate and return the full config map.