Class ResumeSessionRequest
java.lang.Object
com.github.copilot.rpc.ResumeSessionRequest
Internal request object for resuming an existing session.
This is a low-level class for JSON-RPC communication. For resuming sessions,
use
CopilotClient.resumeSession(String, ResumeSessionConfig).
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the disableResume setting, reverting to the default behavior.voidClears the embeddingCacheStorage setting, reverting to the default behavior.voidClears the enableConfigDiscovery setting, reverting to the default behavior.voidClears the enableFileHooks setting, reverting to the default behavior.voidClears the enableHostGitOperations setting, reverting to the default behavior.voidClears the enableOnDemandInstructionDiscovery setting, reverting to the default behavior.voidClears the enableSessionStore setting, reverting to the default behavior.voidClears the enableSessionTelemetry setting, reverting to the default behavior.voidClears the enableSkills setting, reverting to the default behavior.voidClears the hooks setting, reverting to the default behavior.voidClears the includeSubAgentStreamingEvents setting, reverting to the default behavior.voidClears the requestElicitation setting, reverting to the default behavior.voidClears the requestMcpApps setting, reverting to the default behavior.voidClears the requestPermission setting, reverting to the default behavior.voidClears the requestUserInput setting, reverting to the default behavior.voidClears the skipEmbeddingRetrieval setting, reverting to the default behavior.voidClears the streaming setting, reverting to the default behavior.getAgent()Gets the pre-selected agent name.Gets available tools.Gets the client name.Gets the commands wire definitions.Gets config directory.Gets the context window tier.Gets custom agents.Gets the default agent config.Gets disabled skills.Gets disable resume flag.Gets embedding cache storage mode.Gets enable config discovery flag.Gets enable file hooks flag.Gets enable host git operations flag.Gets enable on-demand instruction discovery flag.Gets enable session store flag.Gets enable session telemetry flag.Gets enable skills flag.Gets MCP environment variable value mode.Gets excluded tools.Gets the GitHub token for per-session authentication.getHooks()Gets hooks flag.Gets include sub-agent streaming events flag.Gets infinite sessions config.Gets instruction directories.Gets large output config.Gets MCP OAuth token storage mode.Gets MCP servers.getModel()Gets the model name.Gets the model capabilities override.Gets organization custom instructions.Gets plugin directories.Gets the provider config.Gets the reasoning effort.Gets the reasoning summary mode.Gets the remote session mode.Gets the requestAutoModeSwitch flag.Gets the requestElicitation flag.Gets the requestExitPlanMode flag.Gets the requestMcpApps flag.Gets request permission flag.Gets request user input flag.Gets the session ID.Gets skill directories.Gets skip embedding retrieval flag.Gets streaming flag.Gets the system message config.Gets the tool filter precedence.getTools()Gets the tools.Gets working directory.voidSets the pre-selected agent name.voidsetAvailableTools(List<String> availableTools) Sets available tools.voidsetClientName(String clientName) Sets the client name.voidsetCommands(List<CommandWireDefinition> commands) Sets the commands wire definitions.voidsetConfigDirectory(String configDirectory) Sets config directory.voidsetContextTier(String contextTier) Sets the context window tier.voidsetCustomAgents(List<CustomAgentConfig> customAgents) Sets custom agents.voidsetDefaultAgent(DefaultAgentConfig defaultAgent) Sets the default agent config.voidsetDisabledSkills(List<String> disabledSkills) Sets disabled skills.voidsetDisableResume(boolean disableResume) Sets disable resume flag.voidsetEmbeddingCacheStorage(String embeddingCacheStorage) Sets embedding cache storage mode.voidsetEnableConfigDiscovery(boolean enableConfigDiscovery) Sets enable config discovery flag.voidsetEnableFileHooks(boolean enableFileHooks) Sets enable file hooks flag.voidsetEnableHostGitOperations(boolean enableHostGitOperations) Sets enable host git operations flag.voidsetEnableOnDemandInstructionDiscovery(boolean enableOnDemandInstructionDiscovery) Sets enable on-demand instruction discovery flag.voidsetEnableSessionStore(boolean enableSessionStore) Sets enable session store flag.voidsetEnableSessionTelemetry(boolean enableSessionTelemetry) Sets enable session telemetry flag.voidsetEnableSkills(boolean enableSkills) Sets enable skills flag.voidsetEnvValueMode(String envValueMode) Sets MCP environment variable value mode.voidsetExcludedTools(List<String> excludedTools) Sets excluded tools.voidsetGitHubToken(String gitHubToken) Sets the GitHub token for per-session authentication.voidsetHooks(boolean hooks) Sets hooks flag.voidsetIncludeSubAgentStreamingEvents(boolean includeSubAgentStreamingEvents) Sets include sub-agent streaming events flag.voidsetInfiniteSessions(InfiniteSessionConfig infiniteSessions) Sets infinite sessions config.voidsetInstructionDirectories(List<String> instructionDirectories) Sets instruction directories.voidsetLargeOutput(LargeToolOutputConfig largeOutput) Sets large output config.voidsetMcpOAuthTokenStorage(String mcpOAuthTokenStorage) Sets MCP OAuth token storage mode.voidsetMcpServers(Map<String, McpServerConfig> mcpServers) Sets MCP servers.voidSets the model name.voidsetModelCapabilities(ModelCapabilitiesOverride modelCapabilities) Sets the model capabilities override.voidsetOrganizationCustomInstructions(String organizationCustomInstructions) Sets organization custom instructions.voidsetPluginDirectories(List<String> pluginDirectories) Sets plugin directories.voidsetProvider(ProviderConfig provider) Sets the provider config.voidsetReasoningEffort(String reasoningEffort) Sets the reasoning effort.voidsetReasoningSummary(String reasoningSummary) Sets the reasoning summary mode.voidsetRemoteSession(String remoteSession) Sets the remote session mode.voidsetRequestAutoModeSwitch(Boolean requestAutoModeSwitch) Sets the requestAutoModeSwitch flag.voidsetRequestElicitation(boolean requestElicitation) Sets the requestElicitation flag.voidsetRequestExitPlanMode(Boolean requestExitPlanMode) Sets the requestExitPlanMode flag.voidsetRequestMcpApps(boolean requestMcpApps) Sets the requestMcpApps flag.voidsetRequestPermission(boolean requestPermission) Sets request permission flag.voidsetRequestUserInput(boolean requestUserInput) Sets request user input flag.voidsetSessionId(String sessionId) Sets the session ID.voidsetSkillDirectories(List<String> skillDirectories) Sets skill directories.voidsetSkipEmbeddingRetrieval(boolean skipEmbeddingRetrieval) Sets skip embedding retrieval flag.voidsetStreaming(boolean streaming) Sets streaming flag.voidsetSystemMessage(SystemMessageConfig systemMessage) Sets the system message config.voidsetToolFilterPrecedence(String toolFilterPrecedence) Sets the tool filter precedence.voidsetTools(List<ToolDefinition> tools) Sets the tools.voidsetWorkingDirectory(String workingDirectory) Sets working directory.
-
Constructor Details
-
ResumeSessionRequest
public ResumeSessionRequest()
-
-
Method Details
-
getSessionId
Gets the session ID. @return the session ID -
setSessionId
Sets the session ID. @param sessionId the session ID -
getClientName
Gets the client name. @return the client name -
setClientName
Sets the client name. @param clientName the client name -
getModel
Gets the model name. @return the model -
setModel
Sets the model name. @param model the model -
getReasoningEffort
Gets the reasoning effort. @return the reasoning effort level -
setReasoningEffort
Sets the reasoning effort. @param reasoningEffort the reasoning effort level -
getReasoningSummary
Gets the reasoning summary mode. @return the reasoning summary mode -
setReasoningSummary
Sets the reasoning summary mode. @param reasoningSummary the reasoning summary mode -
getContextTier
Gets the context window tier. @return the context window tier -
setContextTier
Sets the context window tier. @param contextTier the context window tier -
getTools
Gets the tools. @return the tool definitions -
setTools
Sets the tools. @param tools the tool definitions -
getSystemMessage
Gets the system message config. @return the system message config -
setSystemMessage
Sets the system message config. @param systemMessage the system message config -
getAvailableTools
-
setAvailableTools
-
getExcludedTools
-
setExcludedTools
-
getToolFilterPrecedence
Gets the tool filter precedence. @return the precedence value -
setToolFilterPrecedence
Sets the tool filter precedence. @param toolFilterPrecedence the precedence ("excluded" or null) -
getProvider
Gets the provider config. @return the provider -
setProvider
Sets the provider config. @param provider the provider -
getEnableSessionTelemetry
Gets enable session telemetry flag. @return the flag -
setEnableSessionTelemetry
public void setEnableSessionTelemetry(boolean enableSessionTelemetry) Sets enable session telemetry flag. @param enableSessionTelemetry the flag -
clearEnableSessionTelemetry
public void clearEnableSessionTelemetry()Clears the enableSessionTelemetry setting, reverting to the default behavior. -
getRequestPermission
Gets request permission flag. @return the flag -
setRequestPermission
public void setRequestPermission(boolean requestPermission) Sets request permission flag. @param requestPermission the flag -
clearRequestPermission
public void clearRequestPermission()Clears the requestPermission setting, reverting to the default behavior. -
getRequestUserInput
Gets request user input flag. @return the flag -
setRequestUserInput
public void setRequestUserInput(boolean requestUserInput) Sets request user input flag. @param requestUserInput the flag -
clearRequestUserInput
public void clearRequestUserInput()Clears the requestUserInput setting, reverting to the default behavior. -
getHooks
Gets hooks flag. @return the flag -
setHooks
public void setHooks(boolean hooks) Sets hooks flag. @param hooks the flag -
clearHooks
public void clearHooks()Clears the hooks setting, reverting to the default behavior. -
getWorkingDirectory
Gets working directory. @return the working directory -
setWorkingDirectory
Sets working directory. @param workingDirectory the working directory -
getConfigDirectory
Gets config directory. @return the config directory -
setConfigDirectory
Sets config directory. @param configDirectory the config directory -
getEnableConfigDiscovery
Gets enable config discovery flag. @return the flag -
setEnableConfigDiscovery
public void setEnableConfigDiscovery(boolean enableConfigDiscovery) Sets enable config discovery flag. @param enableConfigDiscovery the flag -
clearEnableConfigDiscovery
public void clearEnableConfigDiscovery()Clears the enableConfigDiscovery setting, reverting to the default behavior. -
getSkipEmbeddingRetrieval
Gets skip embedding retrieval flag. @return the flag -
setSkipEmbeddingRetrieval
public void setSkipEmbeddingRetrieval(boolean skipEmbeddingRetrieval) Sets skip embedding retrieval flag. @param skipEmbeddingRetrieval the flag -
clearSkipEmbeddingRetrieval
public void clearSkipEmbeddingRetrieval()Clears the skipEmbeddingRetrieval setting, reverting to the default behavior. -
getOrganizationCustomInstructions
Gets organization custom instructions. @return the instructions -
setOrganizationCustomInstructions
Sets organization custom instructions. @param organizationCustomInstructions the instructions -
getEnableOnDemandInstructionDiscovery
Gets enable on-demand instruction discovery flag. @return the flag -
setEnableOnDemandInstructionDiscovery
public void setEnableOnDemandInstructionDiscovery(boolean enableOnDemandInstructionDiscovery) Sets enable on-demand instruction discovery flag. @param enableOnDemandInstructionDiscovery the flag -
clearEnableOnDemandInstructionDiscovery
public void clearEnableOnDemandInstructionDiscovery()Clears the enableOnDemandInstructionDiscovery setting, reverting to the default behavior. -
getEnableFileHooks
Gets enable file hooks flag. @return the flag -
setEnableFileHooks
public void setEnableFileHooks(boolean enableFileHooks) Sets enable file hooks flag. @param enableFileHooks the flag -
clearEnableFileHooks
public void clearEnableFileHooks()Clears the enableFileHooks setting, reverting to the default behavior. -
getEnableHostGitOperations
Gets enable host git operations flag. @return the flag -
setEnableHostGitOperations
public void setEnableHostGitOperations(boolean enableHostGitOperations) Sets enable host git operations flag. @param enableHostGitOperations the flag -
clearEnableHostGitOperations
public void clearEnableHostGitOperations()Clears the enableHostGitOperations setting, reverting to the default behavior. -
getEnableSessionStore
Gets enable session store flag. @return the flag -
setEnableSessionStore
public void setEnableSessionStore(boolean enableSessionStore) Sets enable session store flag. @param enableSessionStore the flag -
clearEnableSessionStore
public void clearEnableSessionStore()Clears the enableSessionStore setting, reverting to the default behavior. -
getEnableSkills
Gets enable skills flag. @return the flag -
setEnableSkills
public void setEnableSkills(boolean enableSkills) Sets enable skills flag. @param enableSkills the flag -
clearEnableSkills
public void clearEnableSkills()Clears the enableSkills setting, reverting to the default behavior. -
getEmbeddingCacheStorage
Gets embedding cache storage mode. @return the mode -
setEmbeddingCacheStorage
Sets embedding cache storage mode. @param embeddingCacheStorage the mode -
clearEmbeddingCacheStorage
public void clearEmbeddingCacheStorage()Clears the embeddingCacheStorage setting, reverting to the default behavior. -
getDisableResume
Gets disable resume flag. @return the flag -
setDisableResume
public void setDisableResume(boolean disableResume) Sets disable resume flag. @param disableResume the flag -
clearDisableResume
public void clearDisableResume()Clears the disableResume setting, reverting to the default behavior. -
getStreaming
Gets streaming flag. @return the flag -
setStreaming
public void setStreaming(boolean streaming) Sets streaming flag. @param streaming the flag -
clearStreaming
public void clearStreaming()Clears the streaming setting, reverting to the default behavior. -
getIncludeSubAgentStreamingEvents
Gets include sub-agent streaming events flag. @return the flag -
setIncludeSubAgentStreamingEvents
public void setIncludeSubAgentStreamingEvents(boolean includeSubAgentStreamingEvents) Sets include sub-agent streaming events flag. @param includeSubAgentStreamingEvents the flag -
clearIncludeSubAgentStreamingEvents
public void clearIncludeSubAgentStreamingEvents()Clears the includeSubAgentStreamingEvents setting, reverting to the default behavior. -
getMcpServers
Gets MCP servers. @return the servers map -
setMcpServers
Sets MCP servers. @param mcpServers the servers map -
getMcpOAuthTokenStorage
Gets MCP OAuth token storage mode. @return the storage mode -
setMcpOAuthTokenStorage
Sets MCP OAuth token storage mode. @param mcpOAuthTokenStorage the storage mode -
getEnvValueMode
Gets MCP environment variable value mode. @return the mode -
setEnvValueMode
Sets MCP environment variable value mode. @param envValueMode the mode -
getCustomAgents
Gets custom agents. @return the agents -
setCustomAgents
Sets custom agents. @param customAgents the agents -
getDefaultAgent
Gets the default agent config. @return the default agent config -
setDefaultAgent
Sets the default agent config. @param defaultAgent the default agent config -
getAgent
Gets the pre-selected agent name. @return the agent name -
setAgent
Sets the pre-selected agent name. @param agent the agent name -
getSkillDirectories
-
setSkillDirectories
-
getInstructionDirectories
-
setInstructionDirectories
-
getPluginDirectories
-
setPluginDirectories
-
getLargeOutput
Gets large output config. @return the large output config -
setLargeOutput
Sets large output config. @param largeOutput the large output config -
getDisabledSkills
-
setDisabledSkills
-
getInfiniteSessions
Gets infinite sessions config. @return the infinite sessions config -
setInfiniteSessions
Sets infinite sessions config. @param infiniteSessions the infinite sessions config -
getCommands
Gets the commands wire definitions. @return the commands -
setCommands
Sets the commands wire definitions. @param commands the commands -
getRequestElicitation
Gets the requestElicitation flag. @return the flag -
setRequestElicitation
public void setRequestElicitation(boolean requestElicitation) Sets the requestElicitation flag. @param requestElicitation the flag -
clearRequestElicitation
public void clearRequestElicitation()Clears the requestElicitation setting, reverting to the default behavior. -
getRequestMcpApps
Gets the requestMcpApps flag. @return the flag -
setRequestMcpApps
public void setRequestMcpApps(boolean requestMcpApps) Sets the requestMcpApps flag. @param requestMcpApps the flag -
clearRequestMcpApps
public void clearRequestMcpApps()Clears the requestMcpApps setting, reverting to the default behavior. -
getRequestExitPlanMode
Gets the requestExitPlanMode flag. @return the flag -
setRequestExitPlanMode
Sets the requestExitPlanMode flag. @param requestExitPlanMode the flag -
getRequestAutoModeSwitch
Gets the requestAutoModeSwitch flag. @return the flag -
setRequestAutoModeSwitch
Sets the requestAutoModeSwitch flag. @param requestAutoModeSwitch the flag -
getModelCapabilities
Gets the model capabilities override. @return the override -
setModelCapabilities
Sets the model capabilities override. @param modelCapabilities the override -
getGitHubToken
Gets the GitHub token for per-session authentication. @return the token -
setGitHubToken
Sets the GitHub token for per-session authentication. @param gitHubToken the token -
getRemoteSession
Gets the remote session mode. @return the remote session mode -
setRemoteSession
Sets the remote session mode. @param remoteSession the remote session mode
-