/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Internal request object for resuming an existing session.
*
* This is a low-level class for JSON-RPC communication. For resuming sessions,
* use
* {@link com.github.copilot.sdk.CopilotClient#resumeSession(String, ResumeSessionConfig)}.
*
* @see com.github.copilot.sdk.CopilotClient#resumeSession(String,
* ResumeSessionConfig)
* @see ResumeSessionConfig
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public final class ResumeSessionRequest {
@JsonProperty("sessionId")
private String sessionId;
@JsonProperty("tools")
private List tools;
@JsonProperty("provider")
private ProviderConfig provider;
@JsonProperty("requestPermission")
private Boolean requestPermission;
@JsonProperty("streaming")
private Boolean streaming;
@JsonProperty("mcpServers")
private Map mcpServers;
@JsonProperty("customAgents")
private List customAgents;
/** Gets the session ID. @return the session ID */
public String getSessionId() {
return sessionId;
}
/** Sets the session ID. @param sessionId the session ID */
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
/** Gets the tools. @return the tool definitions */
public List getTools() {
return tools;
}
/** Sets the tools. @param tools the tool definitions */
public void setTools(List tools) {
this.tools = tools;
}
/** Gets the provider config. @return the provider */
public ProviderConfig getProvider() {
return provider;
}
/** Sets the provider config. @param provider the provider */
public void setProvider(ProviderConfig provider) {
this.provider = provider;
}
/** Gets request permission flag. @return the flag */
public Boolean getRequestPermission() {
return requestPermission;
}
/** Sets request permission flag. @param requestPermission the flag */
public void setRequestPermission(Boolean requestPermission) {
this.requestPermission = requestPermission;
}
/** Gets streaming flag. @return the flag */
public Boolean getStreaming() {
return streaming;
}
/** Sets streaming flag. @param streaming the flag */
public void setStreaming(Boolean streaming) {
this.streaming = streaming;
}
/** Gets MCP servers. @return the servers map */
public Map getMcpServers() {
return mcpServers;
}
/** Sets MCP servers. @param mcpServers the servers map */
public void setMcpServers(Map mcpServers) {
this.mcpServers = mcpServers;
}
/** Gets custom agents. @return the agents */
public List getCustomAgents() {
return customAgents;
}
/** Sets custom agents. @param customAgents the agents */
public void setCustomAgents(List customAgents) {
this.customAgents = customAgents;
}
}