LemonRouter.AgentProfiles (lemon_router v0.1.0)

View Source

Agent profile configuration management.

Loads and manages agent configurations including:

  • Default engine
  • Tool policies
  • System prompts
  • Rate limits

Summary

Functions

Returns a specification to start this module under a supervisor.

Check whether an agent profile key exists.

Get an agent profile by ID.

List all agent profiles.

Reload agent profiles from configuration.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

exists?(agent_id)

@spec exists?(agent_id :: binary()) :: boolean()

Check whether an agent profile key exists.

get(agent_id)

@spec get(agent_id :: binary()) :: map() | nil

Get an agent profile by ID.

list()

@spec list() :: [map()]

List all agent profiles.

reload()

@spec reload() :: :ok

Reload agent profiles from configuration.

start_link(opts \\ [])