Enable Agents
Enables the Embabel Agent framework with auto-configuration support.
This annotation triggers the import of agent-related configuration classes and activates appropriate Spring profiles based on the specified attributes. It serves as the foundation for more specialized annotations like @EnableAgentShell
and @EnableAgentMcp
.
Example Usage:
loggingTheme = "starwars",
localModels = {"ollama", "docker"},
mcpClients = {"filesystem", "github"}
)
public class MyAgentApplication {
public static void main(String[] args) {
SpringApplication.run(MyAgentApplication.class, args);
}
}
Content copied to clipboard
Profile Activation:
This annotation activates Spring profiles based on the provided attributes:
loggingTheme
- Activates a theme-specific profile (e.g., "starwars", "severance")localModels
- Activates profiles for local AI model providersmcpClients
- Activates profiles for Model Context Protocol clients
Author
Embabel Team
Since
1.0