Annotation Interface CopilotTool
Marks a method as a Copilot tool. The annotated method will be exposed to the
model as a callable tool during a session.
Example usage:
@CopilotTool("Get weather for a location")
public CompletableFuture<String> getWeather(
@CopilotToolParam(value = "City name", required = true) String location) {
return CompletableFuture.completedFuture("Sunny in " + location);
}
- Since:
- 1.0.2
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefer configuration for this tool.Tool name.booleanWhether this tool overrides a built-in tool.booleanWhether to skip permission checks.
-
Element Details
-
value
String valueTool description (sent to the model). -
name
-
overridesBuiltInTool
boolean overridesBuiltInToolWhether this tool overrides a built-in tool.- Default:
false
-
skipPermission
boolean skipPermissionWhether to skip permission checks.- Default:
false
-
defer
-