Documentation
¶
Overview ¶
Package loader reads user-authored agent definitions from <EVVA_HOME>/agents/{name}/ at startup and turns them into sysprompt.AgentDefinition values the agent.Registry can merge with Go-defined built-ins (sysprompt.MainAgent, ExploreAgent, GeneralAgent).
Disk layout per agent:
<EVVA_HOME>/agents/{name}/
├── system_prompt.md # required; full system prompt body
├── tools.yml # required; { active: [...], deferred: [...] }
└── meta.yml # required; { as: [...], model: "...", when_to_use: "..." }
Behavior on bad input mirrors memdir.Load: invalid agents are skipped with a Warning, never an error. The session continues with whatever agents loaded cleanly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Warning ¶
type Warning struct {
Agent string // directory name, may be "" if the failure was the scan itself
Path string // file involved in the warning, "" for directory-level issues
Err error
}
Warning records a non-fatal problem encountered while loading agents. Hosts surface these via slog at startup so operators see what failed without the binary refusing to start.
Click to show internal directories.
Click to hide internal directories.