Class PermissionRequest
java.lang.Object
com.github.copilot.rpc.PermissionRequest
Represents a permission request from the AI assistant.
When the assistant needs permission to perform certain actions, this object contains the details of the request, including the kind of permission and any associated tool call.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets additional extension data for the request.getKind()Gets the kind of permission being requested.Gets the associated tool call ID, if applicable.voidsetExtensionData(Map<String, Object> extensionData) Sets additional extension data for the request.voidSets the permission kind.voidsetToolCallId(String toolCallId) Sets the tool call ID.
-
Constructor Details
-
PermissionRequest
public PermissionRequest()
-
-
Method Details
-
getKind
-
setKind
-
getToolCallId
Gets the associated tool call ID, if applicable.- Returns:
- the tool call ID, or
nullif not a tool-related request
-
setToolCallId
Sets the tool call ID.- Parameters:
toolCallId- the tool call ID
-
getExtensionData
-
setExtensionData
-