Lux.Company.Hub.Local (Lux v0.5.0)

View Source

Local implementation of the company hub. Manages company state and agent communication within a single BEAM node.

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets an agent by ID from the company.

Starts the local hub.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_agent(agent_id, hub)

@spec get_agent(String.t(), hub :: GenServer.server()) ::
  {:ok, map()} | {:error, term()}

Gets an agent by ID from the company.

start_link(opts)

Starts the local hub.