Annotation Interface CopilotToolParam
@Documented
@Retention(RUNTIME)
@Target(PARAMETER)
@CopilotExperimental
public @interface CopilotToolParam
Annotates a parameter of a
CopilotTool-annotated method to provide
metadata about the parameter that is sent to the model.
Example usage:
@CopilotTool("Search for issues")
public CompletableFuture<String> searchIssues(
@CopilotToolParam(value = "Search query", required = true) String query,
@CopilotToolParam(value = "Max results", required = false, defaultValue = "10") int limit) {
// ...
}
- Since:
- 1.0.2
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
name
-
required
boolean requiredWhether this parameter is required. Default true.- Default:
true
-
defaultValue
-