EnableAgents

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);
    }
}

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 providers
  • mcpClients - Activates profiles for Model Context Protocol clients

Author

Embabel Team

Since

1.0

See also

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun localModels(): Array<String>
Specifies local AI model providers to enable.
Link copied to clipboard
abstract fun loggingTheme(): String
Specifies the logging theme to use for agent operations.
Link copied to clipboard
abstract fun mcpServers(): Array<String>
Specifies Model Context Protocol (MCP) clients to enable.
Link copied to clipboard
abstract fun toString(): String