Module agentforge4j.config.loader
Class ClasspathAgentLoader
java.lang.Object
com.agentforge4j.config.loader.agent.BaseAgentLoader
com.agentforge4j.config.loader.agent.ClasspathAgentLoader
- All Implemented Interfaces:
AgentLoader
Loads agent definitions from shipped classpath bundles.
-
Field Summary
FieldsFields inherited from class com.agentforge4j.config.loader.agent.BaseAgentLoader
AGENT_DIR_SUFFIX, AGENT_FILE_NAME, BOUNDARIES_FILE_NAME, objectMapper, SYSTEM_PROMPT_FILE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionClasspathAgentLoader(com.fasterxml.jackson.databind.ObjectMapper objectMapper, String rootPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlog(System.Logger.Level level, String message, Object... args) protected AgentDefinitionFilereadAgentFile(String entry) protected StringreadBoundariesFile(String entry) protected StringreadSystemPromptFile(String entry) Methods inherited from class com.agentforge4j.config.loader.agent.BaseAgentLoader
loadAgents, loadAgents
-
Field Details
-
SHIPPED_AGENTS_ROOT
- See Also:
-
-
Constructor Details
-
ClasspathAgentLoader
public ClasspathAgentLoader(com.fasterxml.jackson.databind.ObjectMapper objectMapper, String rootPath)
-
-
Method Details
-
log
- Specified by:
login classBaseAgentLoader
-
listAgentDirectories
- Specified by:
listAgentDirectoriesin classBaseAgentLoader
-
readAgentFile
- Specified by:
readAgentFilein classBaseAgentLoader
-
readSystemPromptFile
- Specified by:
readSystemPromptFilein classBaseAgentLoader
-
readBoundariesFile
- Specified by:
readBoundariesFilein classBaseAgentLoader
-