Package group.worldstandard.pudel.api.agent


package group.worldstandard.pudel.api.agent
AI Agent Tools API for plugin developers.

This package provides the interfaces and classes needed to create custom tools that the AI agent can use when processing user requests. Plugins can register tools that extend the agent's capabilities with domain-specific functionality.

Key Components:

Creating a Tool:

public class WeatherTools implements AgentToolProvider {

    @AgentTool(
        name = "get_weather",
        description = "Get the current weather for a location",
        keywords = {"weather", "temperature"}
    )
    public String getWeather(AgentToolContext context, String location) {
        return "Weather in " + location + ": Sunny, 25°C";
    }
}

// Register in your plugin:
@OnEnable
public void onEnable(PluginContext context) {
    context.getAgentToolRegistry().registerProvider("my-plugin", new WeatherTools());
}
Since:
2.3.0