Package com.github.copilot.sdk.json
Class PermissionRequest
java.lang.Object
com.github.copilot.sdk.json.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.
- 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
Gets the kind of permission being requested.- Returns:
- the permission kind
-
setKind
Sets the permission kind.- Parameters:
kind- the permission kind
-
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
Gets additional extension data for the request.- Returns:
- the extension data map
-
setExtensionData
Sets additional extension data for the request.- Parameters:
extensionData- the extension data map
-