Class CreateSessionRequest

java.lang.Object
com.github.copilot.sdk.json.CreateSessionRequest

public final class CreateSessionRequest extends Object
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).

See Also:
  • Constructor Details

    • CreateSessionRequest

      public CreateSessionRequest()
  • Method Details

    • getModel

      public String getModel()
      Gets the model name. @return the model
    • setModel

      public void setModel(String model)
      Sets the model name. @param model the model
    • getSessionId

      public String getSessionId()
      Gets the session ID. @return the session ID
    • setSessionId

      public void setSessionId(String sessionId)
      Sets the session ID. @param sessionId the session ID
    • getTools

      public List<ToolDef> getTools()
      Gets the tools. @return the tool definitions
    • setTools

      public void setTools(List<ToolDef> tools)
      Sets the tools. @param tools the tool definitions
    • getSystemMessage

      public SystemMessageConfig getSystemMessage()
      Gets the system message config. @return the config
    • setSystemMessage

      public void setSystemMessage(SystemMessageConfig systemMessage)
      Sets the system message config. @param systemMessage the config
    • getAvailableTools

      public List<String> getAvailableTools()
      Gets available tools. @return the tool names
    • setAvailableTools

      public void setAvailableTools(List<String> availableTools)
      Sets available tools. @param availableTools the tool names
    • getExcludedTools

      public List<String> getExcludedTools()
      Gets excluded tools. @return the tool names
    • setExcludedTools

      public void setExcludedTools(List<String> excludedTools)
      Sets excluded tools. @param excludedTools the tool names
    • getProvider

      public ProviderConfig getProvider()
      Gets the provider config. @return the provider
    • setProvider

      public void setProvider(ProviderConfig provider)
      Sets the provider config. @param provider the provider
    • getRequestPermission

      public Boolean getRequestPermission()
      Gets request permission flag. @return the flag
    • setRequestPermission

      public void setRequestPermission(Boolean requestPermission)
      Sets request permission flag. @param requestPermission the flag
    • getStreaming

      public Boolean getStreaming()
      Gets streaming flag. @return the flag
    • setStreaming

      public void setStreaming(Boolean streaming)
      Sets streaming flag. @param streaming the flag
    • getMcpServers

      public Map<String,Object> getMcpServers()
      Gets MCP servers. @return the servers map
    • setMcpServers

      public void setMcpServers(Map<String,Object> mcpServers)
      Sets MCP servers. @param mcpServers the servers map
    • getCustomAgents

      public List<CustomAgentConfig> getCustomAgents()
      Gets custom agents. @return the agents
    • setCustomAgents

      public void setCustomAgents(List<CustomAgentConfig> customAgents)
      Sets custom agents. @param customAgents the agents
    • getInfiniteSessions

      public InfiniteSessionConfig getInfiniteSessions()
      Gets infinite sessions config. @return the config
    • setInfiniteSessions

      public void setInfiniteSessions(InfiniteSessionConfig infiniteSessions)
      Sets infinite sessions config. @param infiniteSessions the config