Uses of Record Class
com.github.copilot.rpc.ToolDefinition
Packages that use ToolDefinition
Package
Description
Configuration classes and data transfer objects for the Copilot SDK.
-
Uses of ToolDefinition in com.github.copilot.rpc
Methods in com.github.copilot.rpc that return ToolDefinitionModifier and TypeMethodDescriptionstatic ToolDefinitionToolDefinition.create(String name, String description, Map<String, Object> schema, ToolHandler handler) Creates a tool definition with a JSON schema for parameters.static ToolDefinitionToolDefinition.createOverride(String name, String description, Map<String, Object> schema, ToolHandler handler) Creates a tool definition that overrides a built-in CLI tool.static ToolDefinitionToolDefinition.createSkipPermission(String name, String description, Map<String, Object> schema, ToolHandler handler) Creates a tool definition that skips the permission request.static ToolDefinitionToolDefinition.createWithDefer(String name, String description, Map<String, Object> schema, ToolHandler handler, ToolDefer defer) Creates a tool definition with an explicit deferral mode.Methods in com.github.copilot.rpc that return types with arguments of type ToolDefinitionModifier and TypeMethodDescriptionstatic List<ToolDefinition> Discovers tool definitions from a class with static@CopilotTool-annotated methods.static List<ToolDefinition> ToolDefinition.fromObject(Object instance) Discovers tool definitions from an object whose methods are annotated with@CopilotTool.CreateSessionRequest.getTools()Gets the tools.ResumeSessionConfig.getTools()Gets the custom tools for this session.ResumeSessionRequest.getTools()Gets the tools.SessionConfig.getTools()Gets the custom tools for this session.Method parameters in com.github.copilot.rpc with type arguments of type ToolDefinitionModifier and TypeMethodDescriptionvoidCreateSessionRequest.setTools(List<ToolDefinition> tools) Sets the tools.ResumeSessionConfig.setTools(List<ToolDefinition> tools) Sets custom tools that the assistant can invoke during the session.voidResumeSessionRequest.setTools(List<ToolDefinition> tools) Sets the tools.SessionConfig.setTools(List<ToolDefinition> tools) Sets custom tools that the assistant can invoke during the session. -
Uses of ToolDefinition in com.github.copilot.tool
Methods in com.github.copilot.tool that return types with arguments of type ToolDefinitionModifier and TypeMethodDescriptionCopilotToolMetadataProvider.definitions(T instance, com.fasterxml.jackson.databind.ObjectMapper mapper) Returns tool definitions for the given instance.