- All Known Implementing Classes:
BaseAgentLoader,ClasspathAgentLoader,FileSystemAgentLoader
public interface AgentLoader
Loads agent definitions from a backing source.
-
Method Summary
Modifier and TypeMethodDescriptionLoads all agents available under a directory.loadAgents(List<String> bundleFiles) Loads agents from the given bundle entries, ignoring entries that do not identify an agent bundle.
-
Method Details
-
loadAgents
Map<String,AgentDefinition> loadAgents()Loads all agents available under a directory.- Returns:
- agents keyed by id
- Throws:
RuntimeException- when the source cannot be read or contains invalid definitions
-
loadAgents
Loads agents from the given bundle entries, ignoring entries that do not identify an agent bundle.- Parameters:
bundleFiles- candidate bundle entry paths- Returns:
- agents keyed by id
- Throws:
RuntimeException- when a matching entry cannot be read or contains an invalid definition
-