Uses of Class
com.github.copilot.rpc.ToolInvocation
Packages that use ToolInvocation
Package
Description
Configuration classes and data transfer objects for the Copilot SDK.
-
Uses of ToolInvocation in com.github.copilot.rpc
Methods in com.github.copilot.rpc that return ToolInvocationModifier and TypeMethodDescriptionToolInvocation.setArguments(com.fasterxml.jackson.databind.JsonNode arguments) Sets the tool arguments.ToolInvocation.setSessionId(String sessionId) Sets the session ID.ToolInvocation.setToolCallId(String toolCallId) Sets the tool call ID.ToolInvocation.setToolName(String toolName) Sets the tool name.Methods in com.github.copilot.rpc with parameters of type ToolInvocationModifier and TypeMethodDescriptionToolHandler.invoke(ToolInvocation invocation) Invokes the tool with the given invocation context.Method parameters in com.github.copilot.rpc with type arguments of type ToolInvocationModifier and TypeMethodDescriptionstatic <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 <R> ToolDefinitionToolDefinition.fromAsyncWithToolInvocation(String name, String description, Function<ToolInvocation, CompletableFuture<R>> handler) Creates a tool definition with a zero-argument asynchronous handler that 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.static <R> ToolDefinitionToolDefinition.fromWithToolInvocation(String name, String description, Function<ToolInvocation, R> handler) Creates a tool definition with a zero-argument synchronous handler that receives theToolInvocationcontext.