Package com.github.copilot.sdk.json
Class ResumeSessionRequest
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 TypeMethodDescriptionGets available tools.Gets config directory.Gets custom agents.Gets disabled skills.Gets disable resume flag.Gets excluded tools.getHooks()Gets hooks flag.Gets infinite sessions config.Gets MCP servers.getModel()Gets the model name.Gets the provider config.Gets the reasoning effort.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.voidsetAvailableTools(List<String> availableTools) Sets available tools.voidsetConfigDir(String configDir) Sets config directory.voidsetCustomAgents(List<CustomAgentConfig> customAgents) Sets custom agents.voidsetDisabledSkills(List<String> disabledSkills) Sets disabled skills.voidsetDisableResume(Boolean disableResume) Sets disable resume flag.voidsetExcludedTools(List<String> excludedTools) Sets excluded tools.voidSets hooks flag.voidsetInfiniteSessions(InfiniteSessionConfig infiniteSessions) Sets infinite sessions config.voidsetMcpServers(Map<String, Object> mcpServers) Sets MCP servers.voidSets the model name.voidsetProvider(ProviderConfig provider) Sets the provider config.voidsetReasoningEffort(String reasoningEffort) Sets the reasoning effort.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 -
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 -
getRequestPermission
Gets request permission flag. @return the flag -
setRequestPermission
Sets request permission flag. @param requestPermission the flag -
getRequestUserInput
Gets request user input flag. @return the flag -
setRequestUserInput
Sets request user input flag. @param requestUserInput the flag -
getHooks
Gets hooks flag. @return the flag -
setHooks
Sets hooks flag. @param hooks the flag -
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 -
getDisableResume
Gets disable resume flag. @return the flag -
setDisableResume
Sets disable resume flag. @param disableResume the flag -
getStreaming
Gets streaming flag. @return the flag -
setStreaming
Sets streaming flag. @param streaming the flag -
getMcpServers
Gets MCP servers. @return the servers map -
setMcpServers
Sets MCP servers. @param mcpServers the servers map -
getCustomAgents
Gets custom agents. @return the agents -
setCustomAgents
Sets custom agents. @param customAgents the agents -
getSkillDirectories
Gets skill directories. @return the directories -
setSkillDirectories
Sets skill directories. @param skillDirectories 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
-