java.lang.Object
com.github.copilot.sdk.json.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 enableConfigDiscovery setting, reverting to the default behavior.voidClears the enableSessionTelemetry 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 requestPermission setting, reverting to the default behavior.voidClears the requestUserInput 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 custom agents.Gets the default agent config.Gets disabled skills.Gets disable resume flag.Gets enable config discovery flag.Gets enable session telemetry 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 MCP servers.getModel()Gets the model name.Gets the model capabilities override.Gets the provider config.Gets the reasoning effort.Gets the remote session mode.Gets the requestAutoModeSwitch flag.Gets the requestElicitation flag.Gets the requestExitPlanMode flag.Gets request permission flag.Gets request user input flag.Gets the session ID.Gets skill directories.Gets streaming flag.Gets the system message config.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.voidsetConfigDir(String configDir) Sets config directory.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.voidsetEnableConfigDiscovery(boolean enableConfigDiscovery) Sets enable config discovery flag.voidsetEnableSessionTelemetry(boolean enableSessionTelemetry) Sets enable session telemetry 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.voidsetMcpServers(Map<String, McpServerConfig> mcpServers) Sets MCP servers.voidSets the model name.voidsetModelCapabilities(ModelCapabilitiesOverride modelCapabilities) Sets the model capabilities override.voidsetProvider(ProviderConfig provider) Sets the provider config.voidsetReasoningEffort(String reasoningEffort) Sets the reasoning effort.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.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.voidsetStreaming(boolean streaming) Sets streaming flag.voidsetSystemMessage(SystemMessageConfig systemMessage) Sets the system message config.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 -
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
Gets available tools. @return the available tool names -
setAvailableTools
Sets available tools. @param availableTools the available tool names -
getExcludedTools
Gets excluded tools. @return the excluded tool names -
setExcludedTools
Sets excluded tools. @param excludedTools the excluded tool names -
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 -
getConfigDir
Gets config directory. @return the config directory -
setConfigDir
Sets config directory. @param configDir 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. -
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 -
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
Gets skill directories. @return the directories -
setSkillDirectories
Sets skill directories. @param skillDirectories the directories -
getInstructionDirectories
Gets instruction directories. @return the instruction directories -
setInstructionDirectories
Sets instruction directories. @param instructionDirectories the directories -
getDisabledSkills
Gets disabled skills. @return the disabled skill names -
setDisabledSkills
Sets disabled skills. @param disabledSkills the skill names to disable -
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. -
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
-