Package com.github.copilot.sdk.json
Class CreateSessionRequest
java.lang.Object
com.github.copilot.sdk.json.CreateSessionRequest
Internal request object for creating a new session.
This is a low-level class for JSON-RPC communication. For creating sessions,
use
CopilotClient.createSession(SessionConfig).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets available tools.Gets custom agents.Gets excluded tools.Gets infinite sessions config.Gets MCP servers.getModel()Gets the model name.Gets the provider config.Gets request permission flag.Gets the session ID.Gets streaming flag.Gets the system message config.getTools()Gets the tools.voidsetAvailableTools(List<String> availableTools) Sets available tools.voidsetCustomAgents(List<CustomAgentConfig> customAgents) Sets custom agents.voidsetExcludedTools(List<String> excludedTools) Sets excluded tools.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.voidsetRequestPermission(Boolean requestPermission) Sets request permission flag.voidsetSessionId(String sessionId) Sets the session ID.voidsetStreaming(Boolean streaming) Sets streaming flag.voidsetSystemMessage(SystemMessageConfig systemMessage) Sets the system message config.voidSets the tools.
-
Constructor Details
-
CreateSessionRequest
public CreateSessionRequest()
-
-
Method Details
-
getModel
Gets the model name. @return the model -
setModel
Sets the model name. @param model the model -
getSessionId
Gets the session ID. @return the session ID -
setSessionId
Sets the session ID. @param sessionId the session ID -
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 config -
setSystemMessage
Sets the system message config. @param systemMessage the config -
getAvailableTools
Gets available tools. @return the tool names -
setAvailableTools
Sets available tools. @param availableTools the tool names -
getExcludedTools
Gets excluded tools. @return the tool names -
setExcludedTools
Sets excluded tools. @param excludedTools the 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 -
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 -
getInfiniteSessions
Gets infinite sessions config. @return the config -
setInfiniteSessions
Sets infinite sessions config. @param infiniteSessions the config
-