Uses of Class
com.github.copilot.tool.Param
Packages that use Param
Package
Description
Configuration classes and data transfer objects for the Copilot SDK.
-
Uses of Param in com.github.copilot.rpc
Methods in com.github.copilot.rpc with parameters of type ParamModifier and TypeMethodDescriptionstatic <T1,T2, R> ToolDefinition ToolDefinition.from(String name, String description, Param<T1> p1, Param<T2> p2, BiFunction<T1, T2, R> handler) Creates a tool definition with a two-argument synchronous handler.static <T1,R> ToolDefinition Creates a tool definition with a one-argument synchronous handler.static <T1,T2, R> ToolDefinition ToolDefinition.fromAsync(String name, String description, Param<T1> p1, Param<T2> p2, BiFunction<T1, T2, CompletableFuture<R>> handler) Creates a tool definition with a two-argument asynchronous handler.static <T1,R> ToolDefinition ToolDefinition.fromAsync(String name, String description, Param<T1> p1, Function<T1, CompletableFuture<R>> handler) Creates a tool definition with a one-argument asynchronous handler.static <T1,R> ToolDefinition ToolDefinition.fromAsyncWithToolInvocation(String name, String description, Param<T1> p1, BiFunction<T1, ToolInvocation, CompletableFuture<R>> handler) Creates a tool definition with a one-argument asynchronous handler that also receives theToolInvocationcontext.static <T1,R> ToolDefinition ToolDefinition.fromWithToolInvocation(String name, String description, Param<T1> p1, BiFunction<T1, ToolInvocation, R> handler) Creates a tool definition with a one-argument synchronous handler that also receives theToolInvocationcontext. -
Uses of Param in com.github.copilot.tool
Methods in com.github.copilot.tool that return ParamModifier and TypeMethodDescriptionParam.defaultValue(String defaultValue) Returns an optional copy with the given default value.Param.description(String description) Returns a copy with a different description.Returns a copy with a different name.static <T> Param<T> Creates a required parameter with no default value.static <T> Param<T> Creates a parameter with explicit required/default settings.Param.required(boolean required) Returns a copy with a different required flag.