AgentEngine.Agent (agent_engine v0.2.0)

Copy Markdown View Source

Config-driven agent loading.

Public vocabulary stays on agent. Internally, the config currently points at an instructions_root directory containing CommBus-authored YAML files. Host applications can generate that path however they like.

A legacy methodology_root key is accepted as a compatibility shim for existing hosts, but it is not part of the preferred public vocabulary.

Summary

Functions

Return the configured prompt budget.

Load all instruction entries for an agent config.

Load an agent config from a YAML file.

Return the preferred model identifier.

Split entries into always-on and trigger-matched groups.

Return host-resolved tool references declared on the agent config.

Types

config()

@type config() :: map()

Functions

budget(arg1)

@spec budget(config()) :: map()

Return the configured prompt budget.

load_entries(config)

@spec load_entries(config()) :: [CommBus.Entry.t()]

Load all instruction entries for an agent config.

load_from_yaml(slug, opts \\ [])

@spec load_from_yaml(
  String.t(),
  keyword()
) :: {:ok, config()} | {:error, term()}

Load an agent config from a YAML file.

Options:

  • :agents_dir — directory containing <slug>.yml
  • :app — optional OTP app for release-relative path resolution

model(arg1)

@spec model(config()) :: String.t()

Return the preferred model identifier.

split_entries(entries)

@spec split_entries([CommBus.Entry.t()]) :: {[CommBus.Entry.t()], [CommBus.Entry.t()]}

Split entries into always-on and trigger-matched groups.

tool_refs(arg1)

@spec tool_refs(config()) :: [String.t()]

Return host-resolved tool references declared on the agent config.