Lux.Agent.Config (Lux v0.5.0)

View Source

Standardized configuration structure for Lux agents.

Summary

Functions

Creates a new Config struct from a map of attributes.

Validates a configuration struct.

Types

t()

@type t() :: %Lux.Agent.Config{
  beams: list(),
  description: String.t(),
  goal: String.t(),
  id: String.t(),
  lenses: list(),
  llm_config: map(),
  module: module() | String.t(),
  name: String.t(),
  prisms: list(),
  signal_handlers: list(),
  template: atom(),
  template_opts: map()
}

Functions

new(attrs)

@spec new(map()) :: {:ok, t()} | {:error, term()}

Creates a new Config struct from a map of attributes.

validate(config)

@spec validate(t()) :: :ok | {:error, term()}

Validates a configuration struct.